Permalink
Browse files

MDL-33932_21 - added array_unique()

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

0 comments on commit 99b1eb1

Please sign in to comment.