summaryrefslogtreecommitdiff
path: root/program/include/rcube_addressbook.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-02 19:16:30 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-02 19:16:30 +0200
commitf368b049c598bb4c260eb0fc21da2abb528cd223 (patch)
tree4169a99f2ab3b9296fb48257e06a59232929d01e /program/include/rcube_addressbook.php
parent50d0f2d648f2eed84563042d5b83504092fd9807 (diff)
Remove duplicates from get_col_values() result in flat mode
Diffstat (limited to 'program/include/rcube_addressbook.php')
-rw-r--r--program/include/rcube_addressbook.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcube_addressbook.php b/program/include/rcube_addressbook.php
index f4f255322..892ae263a 100644
--- a/program/include/rcube_addressbook.php
+++ b/program/include/rcube_addressbook.php
@@ -434,6 +434,11 @@ abstract class rcube_addressbook
}
}
+ // remove duplicates
+ if ($flat && !empty($out)) {
+ $out = array_unique($out);
+ }
+
return $out;
}