Browse Source

Removed bugs

Tyler Akins 24 years ago
parent
commit
e4fd3ffd51
1 changed files with 6 additions and 6 deletions
  1. 6 6
      functions/imap_mailbox.php

+ 6 - 6
functions/imap_mailbox.php

@@ -162,13 +162,13 @@
          $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;