diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-04 20:53:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-04 20:53:19 +0000 |
commit | d45bf0f1e7614e961ed45d85a99e126def3edf64 (patch) | |
tree | a8c02a2aac5aab0e1cd0a16a908befff18b3b5c9 /modules/user/user.module | |
parent | a5f76cd53ea14ec9bc73a59b6a9d06845d849818 (diff) | |
download | brdo-d45bf0f1e7614e961ed45d85a99e126def3edf64.tar.gz brdo-d45bf0f1e7614e961ed45d85a99e126def3edf64.tar.bz2 |
- Patch 185 by Ax: fixed undefined variables, synchronized xtemplate with sf, etc.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 8 |
1 files changed, 5 insertions, 3 deletions
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"] = "<div class=\"menu\">". $menu ."</div>"; } - 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; } } |