Small fix to avoid PHP warnings
This commit is contained in:
+4
-1
@@ -146,7 +146,10 @@
|
||||
|
||||
echo "<TD VALIGN=top $colormain WIDTH=\"100%\">";
|
||||
|
||||
if (! $thissection = $sections[$section]) {
|
||||
if (!empty($sections[$section])) {
|
||||
$thissection = $sections[$section];
|
||||
|
||||
} else {
|
||||
$thissection->course = $course->id; // Create a new section structure
|
||||
$thissection->section = $section;
|
||||
$thissection->summary = "";
|
||||
|
||||
+3
-1
@@ -147,7 +147,9 @@
|
||||
echo "<TD $colormain VALIGN=top WIDTH=\"100%\">";
|
||||
echo "<P><FONT SIZE=3 COLOR=\"$THEME->cellheading2\">$weekday - $endweekday</FONT></P>";
|
||||
|
||||
if (! $thisweek = $sections[$week]) {
|
||||
if (!empty($sections[$week])) {
|
||||
$thisweek = $sections[$week];
|
||||
} else {
|
||||
$thisweek->course = $course->id; // Create a new week structure
|
||||
$thisweek->section = $week;
|
||||
$thisweek->summary = "";
|
||||
|
||||
Reference in New Issue
Block a user