We have added several extra question types over time from Moodle.org cvs contrib folder
Today, it appears that one of them is not defined correctly (i guess)
since one of our teachers found out she could not see the "single question analysis" of a quiz she gave
we got fatal error reference to non-object on line 1474 in questionlib.php
by the help of my friend (and co php developer - Eli Ben-David) we found a workaround / solution
for this issue after changing the line:
$namestr = $QTYPES[$question->qtype]->menu_name();
to...
$namestr = "no question type";
if (!empty($question->qtype))
i need a code review on this issue since i am very new to the "quiz & questions" module
and i can not understand if this fix is ok or a deeper issue is at hand
- duplicates
-
MDL-15693 print_question_icon does not cope with missing question types
-
- Closed
-