From: x2004laborde Date: Tue, 1 May 2007 16:41:42 +0000 (+0000) Subject: fix a bug in surveys : a 0 answer was not possible in multiple choices questions X-Git-Tag: xorg/0.9.15~313 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=eadfa7ba91f5746d198f5f6e14ae6978f913b8e4;hp=f82ee24d22271370896499550f2515017abe61c6;p=platal.git fix a bug in surveys : a 0 answer was not possible in multiple choices questions git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1788 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index 02ccef6..39047af 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -606,7 +606,7 @@ abstract class SurveyList extends SurveyQuestion parent::update($args); $this->choices = array(); foreach ($args['options'] as $val) { - if (trim($val)) { + if (trim($val) || trim($val) == '0') { $this->choices[] = $val; } }