Fix Valid.php

This commit is contained in:
Thomas Peterson 2023-03-23 19:58:17 +01:00
parent cc5695b1a1
commit 9da415d736

View File

@ -92,7 +92,7 @@ class Valid
}
if($option instanceof Checkbox) {
if (isset($this->engine->getVariables()[$option->getId()]) && in_array($opt->getId(), $this->engine->getVariables()[$option->getId()])) {
if (isset($this->engine->getVariables()[$option->getId()]) && is_array($this->engine->getVariables()[$option->getId()]) && in_array($opt->getId(), $this->engine->getVariables()[$option->getId()])) {
$opt->setIsSelected(true);
} else {
$opt->setIsSelected(false);