Skip to content

Commit

Permalink
Bug #363. When everyting is hidden at main-menu, error occurs. Change…
Browse files Browse the repository at this point in the history
…d the get_all_mods function to check this.
  • Loading branch information
stronk7 committed Apr 22, 2003
1 parent e6cf424 commit c7da6f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit c7da6f7

Please sign in to comment.