mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
This commit is contained in:
parent
a900458749
commit
9c9f7d7790
28 changed files with 1600 additions and 65 deletions
|
@ -342,7 +342,7 @@ function print_recent_activity($course) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($changelist) {
|
||||
if (!empty($changelist)) {
|
||||
foreach ($changelist as $changeinfo => $change) {
|
||||
if ($change) {
|
||||
$changes[$changeinfo] = $change;
|
||||
|
@ -473,7 +473,7 @@ function print_section_block($heading, $course, $section, $mods, $modnames, $mod
|
|||
$moddata[] = "<a title=\"$mod->modfullname\" href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">$instancename</a><BR>$editbuttons";
|
||||
}
|
||||
}
|
||||
if (isediting($site->id)) {
|
||||
if (isediting($course->id)) {
|
||||
$editmenu = popup_form("$CFG->wwwroot/course/mod.php?id=$course->id§ion=0&add=",
|
||||
$modnames, "section0", "", get_string("add")."...", "mods", get_string("activities"), true);
|
||||
$editmenu = "<DIV ALIGN=right>$editmenu</DIV>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue