From 4f23d88b19044b692eb64cc2b44b74163383fbb3 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 23 Aug 2009 19:09:14 +0000 Subject: [PATCH] Use the new User API for determining if session user is visitor. --- lib/WebGUI/Macro/UsersOnline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Macro/UsersOnline.pm b/lib/WebGUI/Macro/UsersOnline.pm index b1cdf1340..c74c10f16 100644 --- a/lib/WebGUI/Macro/UsersOnline.pm +++ b/lib/WebGUI/Macro/UsersOnline.pm @@ -100,7 +100,7 @@ sub process { # Calculate the total number of active users $var{'total'} = $var{'members'} + $var{'visitors'}; # Set some flags - $var{'isVisitor'} = 1 if ($session->user->userId eq 1); + $var{'isVisitor'} = 1 if ($session->user->isVisitor); $var{'hasMembers'} = 1 if $var{'member_loop'}; # Assign labels