Fix Valid.php
This commit is contained in:
parent
cc5695b1a1
commit
9da415d736
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user