From 7bba9c17ea7e6c3ffb70405eab5a06364c311774 Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Sat, 1 Feb 2014 12:59:53 +0400 Subject: [PATCH] Improved parsing thread uids --- .../0.0.0/app/libraries/MailSo/Imap/ImapClient.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/rainloop/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php b/rainloop/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php index f5edc4d30..93090e2c5 100644 --- a/rainloop/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php +++ b/rainloop/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php @@ -1102,7 +1102,7 @@ class ImapClient extends \MailSo\Net\NetClient } else if (\is_array($aValue)) { - if (1 === count($aValue) && \is_numeric($aValue[0])) + if (1 === \count($aValue) && \is_numeric($aValue[0])) { $mResult = (int) $aValue[0]; } @@ -1111,11 +1111,20 @@ class ImapClient extends \MailSo\Net\NetClient $mResult = array(); foreach ($aValue as $aValueItem) { - $mResult[] = $this->validateThreadItem($aValueItem); + $mTemp = $this->validateThreadItem($aValueItem); + if (false !== $mTemp) + { + $mResult[] = $mTemp; + } } } } + if (\is_int($mResult) && 0 <= $mResult) + { + $mResult = false; + } + return $mResult; }