From c2be64b8fdf22553feda179a4f21721800ea6b56 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 1 Feb 2010 13:30:44 -0700 Subject: [PATCH] This fixes creation when array is not sorted --- framework/Imap_Client/lib/Horde/Imap/Client/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.11.0