Permalink
Browse files

merged fixed for #4455

  • Loading branch information...
1 parent 1607a86 commit cba644c9029a7b585b44db8c3960665676d35668 toyomoyo committed Dec 9, 2005
Showing with 5 additions and 3 deletions.
  1. +5 −3 course/student.html
View
@@ -63,9 +63,11 @@
.'<optgroup label="'.get_string('trysearching').'"><option></option></optgroup>'."\n";
}
else {
- foreach ($users as $user) {
- $fullname = fullname($user, true);
- echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
+ if ($usercount > 0) { //fix for bug#4455
+ foreach ($users as $user) {
+ $fullname = fullname($user, true);
+ echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
+ }
}
}
}

0 comments on commit cba644c

Please sign in to comment.