From 6dbfc80de2e4df6cfac5d2c92eb0649eca0a7171 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 30 Jan 2014 15:35:20 +0000 Subject: [PATCH] get rid of wrong offset warning --- mail/inc/class.mail_bo.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mail/inc/class.mail_bo.inc.php b/mail/inc/class.mail_bo.inc.php index 5149d9a878..c0d54ccb14 100644 --- a/mail/inc/class.mail_bo.inc.php +++ b/mail/inc/class.mail_bo.inc.php @@ -4170,8 +4170,9 @@ class mail_bo return $rawHeaders[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)]; } $uidsToFetch = new Horde_Imap_Client_Ids(); - if (!(is_object($_uid) || is_array($_uid))) $_uid = (array)$_uid; - $uidsToFetch->add($_uid); + $uid = $_uid; + if (!(is_object($_uid) || is_array($_uid))) $uid = (array)$_uid; + $uidsToFetch->add($uid); $fquery = new Horde_Imap_Client_Fetch_Query(); $fquery->headerText(array('peek'=>true)); @@ -4285,8 +4286,9 @@ class mail_bo } $uidsToFetch = new Horde_Imap_Client_Ids(); - if (!(is_object($_uid) || is_array($_uid))) $_uid = (array)$_uid; - $uidsToFetch->add($_uid); + $uid = $_uid; + if (!(is_object($_uid) || is_array($_uid))) $uid = (array)$_uid; + $uidsToFetch->add($uid); $fquery = new Horde_Imap_Client_Fetch_Query(); $fquery->fullText(array('peek'=>true));