Minor robustness fix

This commit is contained in:
moodler
2003-04-10 13:11:34 +00:00
parent b1db099b7e
commit da5fb074c3
+2
View File
@@ -850,6 +850,8 @@ function quiz_get_default_category($courseid) {
}
function quiz_get_category_menu($courseid, $published=false) {
/// Returns the list of categories
$publish = "";
if ($published) {
$publish = "OR publish = '1'";
}