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
|
@ -62,8 +62,14 @@
|
|||
|
||||
$bestgrade = quiz_get_best_grade($quiz->id, $USER->id);
|
||||
|
||||
if ($quiz->section) {
|
||||
$section = "$quiz->section";
|
||||
} else {
|
||||
$section = "";
|
||||
}
|
||||
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ($quiz->section, $link, "$bestgrade / $quiz->grade");
|
||||
$table->data[] = array ($section, $link, "$bestgrade / $quiz->grade");
|
||||
} else {
|
||||
$table->data[] = array ($link, "$bestgrade / $quiz->grade");
|
||||
}
|
||||
|
|
|
@ -182,6 +182,8 @@ function quiz_print_recent_activity(&$logs, $isteacher=false) {
|
|||
|
||||
global $CFG, $COURSE_TEACHER_COLOR;
|
||||
|
||||
$content = "";
|
||||
|
||||
return $content; // True if anything was printed, otherwise false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue