From 628dba17ca643fd316ab6f1a1800ce8cc300f3fd Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 21 Nov 2005 21:46:48 +0000 Subject: [PATCH] fixed warning (by Michael Long) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10391 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 38579733..b4c62084 100755 --- a/functions/imap_messages.php +++ b/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; } -- 2.25.1