mirror of
https://github.com/moodle/moodle.git
synced 2025-05-13 19:56:25 +02:00
Fixed some "not defined" messages
This commit is contained in:
parent
d08ffdd36d
commit
4c20cd82f2
@ -64,7 +64,9 @@
|
||||
$sroll[$roll->userid][$roll->hour]->status=$roll->status;
|
||||
$sroll[$roll->userid][$roll->hour]->notes=$roll->notes;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$sroll = array(); //just to set default value
|
||||
}
|
||||
|
||||
// get the list of attendance records for all hours of the given day and
|
||||
// put it in the array for use in the attendance table
|
||||
@ -128,8 +130,8 @@
|
||||
$abs=$tar=0;
|
||||
for($j=1;$j<=$form->hours;$j++) {
|
||||
// set the attendance defaults for each student
|
||||
if ($sroll[$student->id][$j]->status == 1) {$status=$T;$tar++;}
|
||||
elseif ($sroll[$student->id][$j]->status == 2) {$status=$A;$abs++;}
|
||||
if (isset ($sroll[$student->id][$j]->status) && $sroll[$student->id][$j]->status == 1 ) {$status=$T;$tar++;}
|
||||
elseif (isset ($sroll[$student->id][$j]->status) && $sroll[$student->id][$j]->status == 2 ) {$status=$A;$abs++;}
|
||||
else {$status=$P;}
|
||||
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-left: 1px dotted; border-top: 1px solid;\">".$status."</td>\n";
|
||||
} /// for loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user