Skip to content
Browse files

More sensible varible names

  • Loading branch information...
1 parent c408b0c commit 7bee16d404413ab73cdf16f13b7584461f921367 moodler committed Nov 10, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -406,12 +406,12 @@ function navmenu($course, $cm=NULL) {
$strsection = get_string("topic");
}
- if (!$array = unserialize($course->modinfo)) {
+ if (!$modinfo = unserialize($course->modinfo)) {
return "";
}
$section = -1;
$selected = "";
- foreach ($array as $mod) {
+ foreach ($modinfo as $mod) {
if ($mod->section > 0 and $section <> $mod->section) {
$menu[] = "-------------- $strsection $mod->section --------------";
}

0 comments on commit 7bee16d

Please sign in to comment.
Something went wrong with that request. Please try again.