mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
More sensible varible names
This commit is contained in:
parent
c408b0c49b
commit
7bee16d404
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue