MDL-37374 questions: fix property_exists calls.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user