Permalink
Browse files

MDL-24241 replacing !empty() by isset()

  • Loading branch information...
1 parent 8fa7806 commit 2f31d181842f02d7c940a56ca8c32bc8bfe4a275 @ppichet ppichet committed Sep 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/edit_question_form.php
@@ -302,7 +302,7 @@ function set_data($question) {
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;
}
}

0 comments on commit 2f31d18

Please sign in to comment.