Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove duplicates from get_col_values() result in flat mode

  • Loading branch information...
commit f368b049c598bb4c260eb0fc21da2abb528cd223 1 parent 50d0f2d
Aleksander Machniak alecpl authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 program/include/rcube_addressbook.php
5 program/include/rcube_addressbook.php
View
@@ -434,6 +434,11 @@ function get_col_values($col, $data, $flat = false)
}
}
+ // remove duplicates
+ if ($flat && !empty($out)) {
+ $out = array_unique($out);
+ }
+
return $out;
}
Please sign in to comment.
Something went wrong with that request. Please try again.