From b39e8e4174e5bb7abb89f7a645b6b106b7ec95f2 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 2 Oct 2012 19:16:30 +0200 Subject: Remove duplicates from get_col_values() result in flat mode --- program/include/rcube_addressbook.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'program/include') diff --git a/program/include/rcube_addressbook.php b/program/include/rcube_addressbook.php index f6de6d70e..9ebd37f0b 100644 --- a/program/include/rcube_addressbook.php +++ b/program/include/rcube_addressbook.php @@ -431,6 +431,11 @@ abstract class rcube_addressbook } } + // remove duplicates + if ($flat && !empty($out)) { + $out = array_unique($out); + } + return $out; } -- cgit v1.2.3