소스 검색

Removed bugs

Tyler Akins 24 년 전
부모
커밋
e4fd3ffd51
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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;