Removed bugs
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jul 2001 20:28:28 +0000 (20:28 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jul 2001 20:28:28 +0000 (20:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1440 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 0ed33a1c277d251144190660a5e0fc39c90729c1..1bb52b8a7ecb931f1e57270291c8e9510e512166 100755 (executable)
          $boxes[$g]['unformatted-disp'] = $mailbox;
          $boxes[$g]['id'] = $g;
 
-         if (isset($line[$g]))
+         $boxes[$g]['flags'] = array();
+         if (isset($line[$g])) {
             ereg("\(([^)]*)\)",$line[$g],$regs);
-         $flags = trim(strtolower(str_replace('\\', '',$regs[1])));
-         if ($flags) {
-            $boxes[$g]['flags'] = explode(' ', $flags);
-         } else
-            $boxes[$g]['flags'] = array();
+            $flags = trim(strtolower(str_replace('\\', '',$regs[1])));
+            if ($flags)
+               $boxes[$g]['flags'] = explode(' ', $flags);
+        }
       }
 
       return $boxes;