avoids error when exporting 0 questions

This commit is contained in:
gustav_delius
2004-12-29 07:21:55 +00:00
parent 089a284b88
commit df4fe0009b
+3
View File
@@ -192,6 +192,9 @@ class quiz_default_format {
$questions = get_questions_category( $this->category );
notify("Exporting ".count($questions)." questions.");
if (!count($questions)) {
return true;
}
$count = 0;
// results are first written into string (and then to a file)