fixed bug 1553 which gave error with empty jump menu
This commit is contained in:
@@ -441,6 +441,10 @@ function popup_form ($common, $options, $formname, $selected="", $nothing="choos
|
||||
//
|
||||
|
||||
global $CFG;
|
||||
|
||||
if (empty($options)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($nothing == "choose") {
|
||||
$nothing = get_string("choose")."...";
|
||||
@@ -1817,6 +1821,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
|
||||
$selectmod = NULL;
|
||||
$logslink = NULL;
|
||||
$flag = false;
|
||||
$menu = array();
|
||||
|
||||
$sectionrecs = get_records("course_sections","course","$course->id","section","section,visible");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user