Permalink
Browse files

fixed foreach problem on line 125 per request from forums

  • Loading branch information...
jungwirr
jungwirr committed Nov 7, 2003
1 parent 428aaa2 commit 129b43ee0e0f1c5c8b29ad81708ca8f20446ab75
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/attendance/view.php
View
@@ -122,7 +122,8 @@
$T = get_string("tardyshort","attendance");
$P = get_string("presentshort","attendance");
foreach ($students as $student) {
if ($students) foreach ($students as $student) {
echo "<tr><td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$student->lastname."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$student->firstname."</td>\n";
$studentid=(($student->idnumber != "") ? $student->idnumber : "&nbsp");

0 comments on commit 129b43e

Please sign in to comment.