Permalink
Browse files

MDL-33932_master - added array_unique()

  • Loading branch information...
1 parent 6be7840 commit f65c82636aa6cf2859ff845dfa3d5aeaf50c1e97 @grabs grabs committed Jun 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/feedback/item/multichoice/lib.php
@@ -561,6 +561,9 @@ public function check_value($value, $item) {
public function create_value($data) {
$vallist = $data;
+ if (is_array($vallist)) {
+ $vallist = array_unique($vallist);
+ }
return trim($this->item_array_to_string($vallist));
}

0 comments on commit f65c826

Please sign in to comment.