Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33932_20 - added array_unique()

  • Loading branch information...
commit 4e5c38b8644a7d61959739cc7f2b39c3fa9cf275 1 parent 1c84aa8
@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
@@ -491,6 +491,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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.