Permalink
Browse files

fixed bug 1553 which gave error with empty jump menu

  • Loading branch information...
gustav_delius
gustav_delius committed Jun 9, 2004
1 parent e044b5a commit 578ba7762ee94c8136d44792ef96b8aed236111b
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/weblib.php
View
@@ -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");

0 comments on commit 578ba77

Please sign in to comment.