* Hopefully squashed all those annoying "flags" workarounds
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2001 20:26:33 +0000 (20:26 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2001 20:26:33 +0000 (20:26 +0000)
* Should kill the error I was just reported with search.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1063 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 0ac9ca999ee9ee6231599cdf00084c774d2be815..d36c66232ee2aa5af7e3c72cbc8a2a7cd1c48667 100755 (executable)
             $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++;
       }