diff --git a/main/survey/ch_dropdown.php b/main/survey/ch_dropdown.php index 7c2e40d037..a03b0f611b 100644 --- a/main/survey/ch_dropdown.php +++ b/main/survey/ch_dropdown.php @@ -33,8 +33,8 @@ class ch_dropdown extends survey_question public function render(FormValidator $form, $questionData = array(), $answers = '') { $name = 'question' . $questionData['question_id']; - array_unshift($questionData['options'], '--'); - $form->addSelect($name, null, $questionData['options']); + $data = array(0 => '--') + $questionData['options']; + $form->addSelect($name, null, $data); if (!empty($answers)) { $form->setDefaults([$name => $answers]); }