From b555ce76aed05403800907769c2be85f30c707c4 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Thu, 16 Sep 2010 23:01:27 +0000 Subject: [PATCH] MDL-24241 replacing !empty() by isset() --- question/type/edit_question_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index 01fbd411f7b..be931a0682f 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -362,7 +362,7 @@ class question_edit_form extends moodleform { if (is_array($extra_question_fields) && !empty($question->options)) { array_shift($extra_question_fields); foreach ($extra_question_fields as $field) { - if (!empty($question->options->$field)) { + if (isset($question->options->$field)) { $question->$field = $question->options->$field; } }