瀏覽代碼

* Hopefully squashed all those annoying "flags" workarounds
* Should kill the error I was just reported with search.php

Tyler Akins 24 年之前
父節點
當前提交
e669789d91
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      functions/imap_mailbox.php

+ 5 - 1
functions/imap_mailbox.php

@@ -374,8 +374,12 @@
             $flags = str_replace('\\', '', $flags);
             $flags = trim(strtolower($flags));
             if ($flags) {
-               $boxes[$g]["flags"] = explode(" ", $flags);
+               $boxes[$g]['flags'] = explode(" ", $flags);
             }
+	    else
+	    {
+	       $boxes[$g]['flags'] = array();
+	    }
          }
          $g++;
       }