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-17 10:06:45 +0200
commitb39e8e4174e5bb7abb89f7a645b6b106b7ec95f2 (patch)
tree4f8ebafbc53aff38db4e673d9ca93efb90ac1faa /program/include/rcube_addressbook.php
parent76d3b4714564d9c68855fca95ae7e09933287c31 (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 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;
}