summaryrefslogtreecommitdiff
path: root/program/include/rcube_addressbook.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-10-02 20:47:04 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-10-02 20:47:04 +0200
commit4712ecf55e339c98b995f24128196b665d7f687c (patch)
tree7d3ca0e1860d3d64fac1d5847922496700ba570b /program/include/rcube_addressbook.php
parent5f7ef9345fbf744d66226081a90fa55a617b011a (diff)
parentf368b049c598bb4c260eb0fc21da2abb528cd223 (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
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;
}