MDL-17779
Add simple check that question at least has questiontext before allowing it.
This commit is contained in:
@@ -445,7 +445,10 @@ class qformat_hotpot extends qformat_default {
|
||||
$question->fraction[$aa] = 1;
|
||||
}
|
||||
}
|
||||
$questions[] = $question;
|
||||
// add a sanity check for empty questions, see MDL-17779
|
||||
if (!empty($question->questiontext)) {
|
||||
$questions[] = $question;
|
||||
}
|
||||
$q++;
|
||||
}
|
||||
$x++;
|
||||
|
||||
Reference in New Issue
Block a user