- Fixed visual glitch in "Who's online" block. Patch by Jeremy.

4.4.x
Dries Buytaert 2003-12-08 17:46:21 +00:00
parent 8a3e9224da
commit 427364a5f5
2 changed files with 6 additions and 8 deletions

View File

@ -412,11 +412,10 @@ function user_block($op = "list", $delta = 0) {
$items[] = format_name(user_load(array("uid" => $uid->uid)));
}
if (db_fetch_object($users)) {
$items[] = "...";
}
if ($items) {
if (db_fetch_object($users)) {
$items[] = "...";
}
$output .= theme("item_list", $items, t("Online users:"));
}
}

View File

@ -412,11 +412,10 @@ function user_block($op = "list", $delta = 0) {
$items[] = format_name(user_load(array("uid" => $uid->uid)));
}
if (db_fetch_object($users)) {
$items[] = "...";
}
if ($items) {
if (db_fetch_object($users)) {
$items[] = "...";
}
$output .= theme("item_list", $items, t("Online users:"));
}
}