Explorar o código

fixed warning

stekkel %!s(int64=21) %!d(string=hai) anos
pai
achega
81c8b6185e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      functions/imap_mailbox.php

+ 2 - 1
functions/imap_mailbox.php

@@ -514,7 +514,8 @@ function sqimap_mailbox_option_list($imap_stream, $show_selected = 0, $folder_sk
     }
 
     foreach ($boxes as $boxes_part) {
-        if ($flag == NULL || !in_array($flag, $boxes_part['flags'])) {
+        if ($flag == NULL || (is_array($boxes_part['flags'])
+                      && !in_array($flag, $boxes_part['flags']))) {
             $box = $boxes_part['unformatted'];
 
             if ($folder_skip != 0 && in_array($box, $folder_skip) ) {