Skip to content

Commit

Permalink
Merge branch 'MDL-71306' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 7, 2021
2 parents 9d3b329 + d1b1b94 commit f777331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form/cohort.php
Expand Up @@ -120,7 +120,7 @@ public function setValue($value) {
$cohortstofetch = array();

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

0 comments on commit f777331

Please sign in to comment.