MDL-17779

Add simple check that question at least has questiontext before allowing it.
This commit is contained in:
thepurpleblob 2009-01-05 15:23:10 +00:00
parent 477c217f5c
commit 9843511764

View File

@ -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++;