From d45bf0f1e7614e961ed45d85a99e126def3edf64 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 4 Dec 2003 20:53:19 +0000 Subject: - Patch 185 by Ax: fixed undefined variables, synchronized xtemplate with sf, etc. --- modules/user/user.module | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 93d6d9570..2c2d23537 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -306,8 +306,11 @@ function user_block($op = "list", $delta = 0) { return $blocks; } else { + $block = array(); + switch ($delta) { case 0: + if (!$user->uid) { /* ** For usability's sake, avoid showing two login forms on one @@ -366,7 +369,6 @@ function user_block($op = "list", $delta = 0) { $block["subject"] = $user->uid ? $user->name : t("Navigation"); $block["content"] = "
". $menu ."
"; } - return $block; case 2: if (user_access("access content")) { @@ -415,9 +417,9 @@ function user_block($op = "list", $delta = 0) { } } } + $block["subject"] = t("Who's online"); + $block["content"] = $output; } - $block["subject"] = t("Who's online"); - $block["content"] = $output; return $block; } } -- cgit v1.2.3