mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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
|
@ -49,7 +49,7 @@
|
|||
|
||||
foreach ($journals as $journal) {
|
||||
|
||||
$entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id");
|
||||
$entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id);
|
||||
|
||||
$journal->timestart = $course->startdate + (($journal->section - 1) * 608400);
|
||||
if ($journal->daysopen) {
|
||||
|
@ -66,8 +66,13 @@
|
|||
} else {
|
||||
$text .= "$strview</A></P>";
|
||||
}
|
||||
if ($journal->section) {
|
||||
$section = "$journal->section";
|
||||
} else {
|
||||
$section = "";
|
||||
}
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$table->data[] = array ("$journal->section",
|
||||
$table->data[] = array ($section,
|
||||
text_to_html($journal->intro),
|
||||
$text);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue