Ver Fonte

fixed warning (by Michael Long)

stekkel há 19 anos atrás
pai
commit
0e0f470204
1 ficheiros alterados com 7 adições e 3 exclusões
  1. 7 3
      functions/imap_messages.php

+ 7 - 3
functions/imap_messages.php

@@ -815,9 +815,13 @@ function parseFetch($aResponse,$aMessageList = array()) {
                 break;
             }
         }
-        $msgi ="$unique_id";
-        $aMsg['UID'] = $unique_id;
-        $aMessageList[$msgi] = $aMsg;
+        if (!empty($unique_id)) {
+            $msgi = "$unique_id";
+            $aMsg['UID'] = $unique_id;
+       } else {
+            $msgi = '';
+       }
+       $aMessageList[$msgi] = $aMsg;
     }
     return $aMessageList;
 }