Fix Valid.php
This commit is contained in:
parent
cc5695b1a1
commit
9da415d736
@ -92,7 +92,7 @@ class Valid
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($option instanceof Checkbox) {
|
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);
|
$opt->setIsSelected(true);
|
||||||
} else {
|
} else {
|
||||||
$opt->setIsSelected(false);
|
$opt->setIsSelected(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user