Permalink
Browse files

MDL-33932_master - added array_unique()

  • Loading branch information...
1 parent 786ad35 commit e9aa190a3735c837fb665f079ba8fc3b52a24d8f @grabs grabs committed with Sam Hemelryk Jun 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/feedback/item/multichoice/lib.php
View
3 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 e9aa190

Please sign in to comment.