Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33932_master - added array_unique()

  • Loading branch information...
commit f65c82636aa6cf2859ff845dfa3d5aeaf50c1e97 1 parent 6be7840
@grabs grabs authored
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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.