Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-33932_21 - added array_unique()

  • Loading branch information...
commit 99b1eb1755a9a0ce87d45b8fe2f7e47843314655 1 parent 3546266
Andreas Grabs grabs authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  mod/feedback/item/multichoice/lib.php
3  mod/feedback/item/multichoice/lib.php
@@ -492,6 +492,9 @@ function check_value($value, $item) {
492 492
493 493 function create_value($data) {
494 494 $vallist = $data;
  495 + if (is_array($vallist)) {
  496 + $vallist = array_unique($vallist);
  497 + }
495 498 return trim($this->item_arrayToString($vallist));
496 499 }
497 500

0 comments on commit 99b1eb1

Please sign in to comment.
Something went wrong with that request. Please try again.