瀏覽代碼

fixed warning (by Michael Long)

stekkel 19 年之前
父節點
當前提交
0e0f470204
共有 1 個文件被更改,包括 7 次插入3 次删除
  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;
 }