MDL-37374 questions: fix property_exists calls.

This commit is contained in:
Tim Hunt
2013-01-16 11:13:53 +00:00
parent 8d54191d7a
commit a8e577debb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ class question_type {
$options->$questionidcolname = $question->id;
}
foreach ($extraquestionfields as $field) {
if (property_exists($question->$field)) {
if (property_exists($question, $field)) {
$options->$field = $question->$field;
}
}