From bd116f83cc7235e0156ea60340b905a71dad5b2a Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 9 Jul 2008 06:55:51 +0000 Subject: [PATCH] Don't use GLOBALS['xxx'] -- Doesn't matter, but let's remain with a consistent coding style git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13221 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/template/folder_list_util.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/template/folder_list_util.php b/functions/template/folder_list_util.php index 1ce9c09c..42a29eee 100644 --- a/functions/template/folder_list_util.php +++ b/functions/template/folder_list_util.php @@ -23,8 +23,11 @@ * @since 1.5.2 */ function getMessageCount ($boxes, $type='total') { + + global $trash_folder; + // The Trash folder isn't counted... - if ($boxes->mailboxname_full == $GLOBALS['trash_folder']) + if ($boxes->mailboxname_full == $trash_folder) return 0; $count = 0; -- 2.25.1