Permalink
Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
2 parents d10ca0e + 4ca741e commit 5919718019827531d913e665b40f3fa4c5a26892 @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
View
2 question/type/edit_question_form.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;
}
}
View
2 question/type/questiontypebase.php
@@ -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 5919718

Please sign in to comment.