From 11578672c18f52e53b71270dafcffc0583d33da4 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 14 Dec 2002 21:59:48 +0000 Subject: [PATCH] fixed bug where it would show visitor as a logged in user. --- lib/WebGUI/Macro/L_loginBox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Macro/L_loginBox.pm b/lib/WebGUI/Macro/L_loginBox.pm index 7f40658d7..0c6bdb0bb 100644 --- a/lib/WebGUI/Macro/L_loginBox.pm +++ b/lib/WebGUI/Macro/L_loginBox.pm @@ -27,7 +27,7 @@ sub _replacement { my ($temp,$boxSize,@param,$text,$f); @param = WebGUI::Macro::getParams($_[0]); $temp = '
'; - if ($session{var}{sessionId}) { + if ($session{user}{userId} <> 1) { $text = $param[1]; if (not defined $text){ $temp .= WebGUI::International::get(48);