Explorar o código

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

Tyler Akins %!s(int64=24) %!d(string=hai) anos
pai
achega
e669789d91
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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++;
       }