Permalink
Browse files

Merge branch 'MDL-37374_24' of git://github.com/timhunt/moodle into M…

…OODLE_24_STABLE
  • Loading branch information...
2 parents 7b85d7a + db1f584 commit 2540839f5816e6316a6cba4eff563a1b9e66910f @danpoltawski danpoltawski committed Jan 17, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 question/type/edit_question_form.php
  2. +1 −1 question/type/questiontypebase.php
@@ -481,7 +481,7 @@ public function set_data($question) {
if (is_array($extraquestionfields) && !empty($question->options)) {
array_shift($extraquestionfields);
foreach ($extraquestionfields as $field) {
- if (property_exists($question->options->$field)) {
+ if (property_exists($question->options, $field)) {
$question->$field = $question->options->$field;
}
}
@@ -454,7 +454,7 @@ public function save_question_options($question) {
$options->$questionidcolname = $question->id;
}
foreach ($extraquestionfields as $field) {
- if (property_exists($question->$field)) {
+ if (property_exists($question, $field)) {
$options->$field = $question->$field;
}
}

0 comments on commit 2540839

Please sign in to comment.