From f368b049c598bb4c260eb0fc21da2abb528cd223 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 02 Oct 2012 13:16:30 -0400 Subject: [PATCH] Remove duplicates from get_col_values() result in flat mode --- program/include/rcube_addressbook.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/program/include/rcube_addressbook.php b/program/include/rcube_addressbook.php index f4f2553..892ae26 100644 --- a/program/include/rcube_addressbook.php +++ b/program/include/rcube_addressbook.php @@ -434,6 +434,11 @@ } } + // remove duplicates + if ($flat && !empty($out)) { + $out = array_unique($out); + } + return $out; } -- Gitblit v1.9.1