From: <gem...@li...> - 2013-02-28 16:24:45
|
Revision: 1166 http://sourceforge.net/p/gemstracker/code/1166 Author: mennodekker Date: 2013-02-28 15:13:09 +0000 (Thu, 28 Feb 2013) Log Message: ----------- show empty subquestions (common abuse of the array question type in limesurvey) Modified Paths: -------------- trunk/library/classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php Modified: trunk/library/classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php =================================================================== --- trunk/library/classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php 2013-02-28 11:02:53 UTC (rev 1165) +++ trunk/library/classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php 2013-02-28 15:13:09 UTC (rev 1166) @@ -175,7 +175,7 @@ foreach($answerNames as $name) { $label = $model->get($name, 'label'); - if (strlen($label)) { + if (!is_null($label)) { // Was strlen($label), but this ruled out empty sub-questions $bridge->thd($label, array('class' => $model->get($name, 'thClass'))); $td = $bridge->td($bridge->$name); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |