Skip to content

Commit

Permalink
MDL-56720 tool_lp: Do not push empty values to IDs array
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 3, 2016
1 parent cad8adc commit 3c73877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tool/lp/classes/form/framework_autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function setValue($value) {
$ids = array();

foreach ($values as $onevalue) {
if ((!$this->optionExists($onevalue)) &&
if (!empty($onevalue) && (!$this->optionExists($onevalue)) &&
($onevalue !== '_qf__force_multiselect_submission')) {
array_push($ids, $onevalue);
}
Expand Down

0 comments on commit 3c73877

Please sign in to comment.