diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-02 19:16:30 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-02 19:16:30 +0200 |
commit | f368b049c598bb4c260eb0fc21da2abb528cd223 (patch) | |
tree | 4169a99f2ab3b9296fb48257e06a59232929d01e /program | |
parent | 50d0f2d648f2eed84563042d5b83504092fd9807 (diff) |
Remove duplicates from get_col_values() result in flat mode
Diffstat (limited to 'program')
-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; } |