Commit 427364a5 authored by Dries's avatar Dries

- Fixed visual glitch in "Who's online" block.  Patch by Jeremy.
parent 8a3e9224
......@@ -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:"));
}
}
......
......@@ -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:"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment