Don't use GLOBALS['xxx'] -- Doesn't matter, but let's remain with a consistent coding...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Jul 2008 06:55:51 +0000 (06:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Jul 2008 06:55:51 +0000 (06:55 +0000)
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

index 1ce9c09..42a29ee 100644 (file)
  * @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;