* To make sure that $indent is always greater than zero (error removal)
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Feb 2001 13:29:40 +0000 (13:29 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Feb 2001 13:29:40 +0000 (13:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1135 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index dc701517ff60c7f4cb5ac9d1bb371201d5ee4a6b..8d6d72c6a8394a9b4d02cbdafe059d61fed1a288 100755 (executable)
             (ereg("^".$folder_prefix, $mailbox)) ||
             ( isset($boxesbyname[$parentfolder]) && (strlen($parentfolder) > 0) ) ) {
             $indent = $dm_count - (countCharInString($folder_prefix, $dm));
-            if ($indent)
+            if ($indent > 0)
                 $boxes[$g]["formatted"]  = str_repeat("&nbsp;&nbsp;", $indent);
             else
                 $boxes[$g]["formatted"] = '';