diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-10-02 20:47:04 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-10-02 20:47:04 +0200 |
commit | 4712ecf55e339c98b995f24128196b665d7f687c (patch) | |
tree | 7d3ca0e1860d3d64fac1d5847922496700ba570b | |
parent | 5f7ef9345fbf744d66226081a90fa55a617b011a (diff) | |
parent | f368b049c598bb4c260eb0fc21da2abb528cd223 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
-rw-r--r-- | 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 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; } |