mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -57,9 +57,14 @@
|
|||
}
|
||||
$due = userdate($assignment->timedue);
|
||||
$link = "<A HREF=\"view.php?id=$assignment->coursemodule\">$assignment->name</A>";
|
||||
if ($assignment->section) {
|
||||
$section = "$assignment->section";
|
||||
} else {
|
||||
$section = "";
|
||||
}
|
||||
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($assignment->section, $link, $due, $submitted);
|
||||
$table->data[] = array ($section, $link, $due, $submitted);
|
||||
} else {
|
||||
$table->data[] = array ($link, $due, $submitted);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue