From: Michael M Slusarz Date: Mon, 1 Feb 2010 20:30:44 +0000 (-0700) Subject: This fixes creation when array is not sorted X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c2be64b8fdf22553feda179a4f21721800ea6b56;p=horde.git This fixes creation when array is not sorted --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Utils.php b/framework/Imap_Client/lib/Horde/Imap/Client/Utils.php index 83907bf52..78548d693 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Utils.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Utils.php @@ -78,7 +78,7 @@ class Horde_Imap_Client_Utils } } else { $out[] = $first . ':' . $last; - if ($last != $val) { + if (($i == $key) && ($last != $val)) { $out[] = $val; } }