From: Michael M Slusarz Date: Tue, 9 Dec 2008 07:02:27 +0000 (-0700) Subject: Only need to increment thread level if in base. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bc2c3cf6bc0492b32e8fb2ed7b95cf7123415c37;p=horde.git Only need to increment thread level if in base. --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index 5969473f0..d3ddff0a5 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -1923,7 +1923,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base reset($data); while (list($key, $val) = each($data)) { if (is_array($val)) { - $this->_parseThread($val, $level + 1, ($key == $cnt)); + $this->_parseThread($val, $level ? $level : 1, ($key == $cnt)); } else { if (is_null($tp['base']) && ($level || $cnt)) { $tp['base'] = $val;