fixed: New Mail macro never returns any messages

This commit is contained in:
Graham Knop 2009-03-12 19:15:38 +00:00
parent e880168a85
commit a4b05556f6
2 changed files with 2 additions and 1 deletions

View file

@ -53,7 +53,7 @@ sub process {
my $db = $session->db;
my $i18n = WebGUI::International->new($session);
my ($count) = $db->quickArray("select count(*) from inbox where userId=? and status='unread'",[$session->user->userId]);
my $count = WebGUI::Inbox->new($session)->getUnreadMessageCount;
my $output = "";
if($count > 0) {