Bug #363. When everyting is hidden at main-menu, error occurs. Changed the get_all_mods function to check this.

This commit is contained in:
stronk7 2003-04-22 20:46:12 +00:00
parent e6cf424727
commit c7da6f7a8f

View File

@ -472,7 +472,9 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
$modnamesused[$mod->modname] = $modnames[$mod->modname];
}
}
asort($modnamesused);
if ($modnamesused) {
asort($modnamesused);
}
}
}