fixed warning (by Michael Long)
[squirrelmail.git] / functions / imap_messages.php
index 38579733bdb6b7f617a2faeb916167a2ef71436d..b4c62084f841376c4528462398419c5cd9f601f5 100755 (executable)
@@ -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;
 }