Permalink
Browse files

Remove duplicates from get_col_values() result in flat mode

  • Loading branch information...
1 parent 50d0f2d commit f368b049c598bb4c260eb0fc21da2abb528cd223 @alecpl alecpl committed Oct 2, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 program/include/rcube_addressbook.php
@@ -434,6 +434,11 @@ function get_col_values($col, $data, $flat = false)
}
}
+ // remove duplicates
+ if ($flat && !empty($out)) {
+ $out = array_unique($out);
+ }
+
return $out;
}

0 comments on commit f368b04

Please sign in to comment.