Browse Source

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

Tyler Akins 24 years ago
parent
commit
e669789d91
1 changed files with 5 additions and 1 deletions
  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++;
       }