Skip to content

Commit

Permalink
MDL-24241 replacing !empty() by isset()
Browse files Browse the repository at this point in the history
  • Loading branch information
ppichet committed Sep 16, 2010
1 parent f71c7f0 commit b555ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/edit_question_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,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;
}
}
Expand Down

0 comments on commit b555ce7

Please sign in to comment.