Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed foreach problem on line 125 per request from forums

  • Loading branch information...
commit 129b43ee0e0f1c5c8b29ad81708ca8f20446ab75 1 parent 428aaa2
jungwirr authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mod/attendance/view.php
View
3  mod/attendance/view.php
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.