From eadfa7ba91f5746d198f5f6e14ae6978f913b8e4 Mon Sep 17 00:00:00 2001 From: x2004laborde Date: Tue, 1 May 2007 16:41:42 +0000 Subject: [PATCH] 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 --- modules/survey/survey.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.1.4