Fixes for twin notices, buried in the HTML.

This commit is contained in:
defacer 2004-08-09 08:06:36 +00:00
parent 09794d30db
commit fecb707db4
2 changed files with 10 additions and 6 deletions

View File

@ -54,9 +54,11 @@
}
echo "</optgroup>\n";
}
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
if (!empty($users)) {
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
?>
</select>

View File

@ -46,9 +46,11 @@
}
echo "</optgroup>\n";
}
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
if (!empty($users)) {
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
?>
</select>