mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
More sensible varible names
This commit is contained in:
parent
c408b0c49b
commit
7bee16d404
@ -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 --------------";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user