Skip to content

Commit

Permalink
MDL-33932_master - added array_unique()
Browse files Browse the repository at this point in the history
  • Loading branch information
grabs committed Jun 25, 2012
1 parent 6be7840 commit f65c826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/feedback/item/multichoice/lib.php
Expand Up @@ -561,6 +561,9 @@ public function check_value($value, $item) {


public function create_value($data) { public function create_value($data) {
$vallist = $data; $vallist = $data;
if (is_array($vallist)) {
$vallist = array_unique($vallist);
}
return trim($this->item_array_to_string($vallist)); return trim($this->item_array_to_string($vallist));
} }


Expand Down

0 comments on commit f65c826

Please sign in to comment.