mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-17779
Add simple check that question at least has questiontext before allowing it.
This commit is contained in:
parent
477c217f5c
commit
9843511764
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user