From 9836d9c8117f682146b765613b99f2370097df6e Mon Sep 17 00:00:00 2001 From: toyomoyo <toyomoyo> Date: Wed, 28 Feb 2007 06:16:31 +0000 Subject: [PATCH] merged fix for MDL-8688, question pics should default to '' --- question/type/edit_question_form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index b02b322bca..04d74e0e80 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -70,8 +70,7 @@ class question_edit_form extends moodleform { if (empty($images)) { $mform->addElement('static', 'image', get_string('imagedisplay', 'quiz'), get_string('noimagesyet')); } else { - $images[''] = get_string('none'); - $mform->addElement('select', 'image', get_string('imagedisplay', 'quiz'), $images); + $mform->addElement('select', 'image', get_string('imagedisplay', 'quiz'), array_merge(array(''=>get_string('none')), $images)); } $mform->addElement('text', 'defaultgrade', get_string('defaultgrade', 'quiz'), -- 2.39.5