From 9da415d7366375458eacd1d16b2e23f7182108c6 Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Thu, 23 Mar 2023 19:58:17 +0100 Subject: [PATCH] Fix Valid.php --- src/Calc/Valid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calc/Valid.php b/src/Calc/Valid.php index 08851f2..1267559 100644 --- a/src/Calc/Valid.php +++ b/src/Calc/Valid.php @@ -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);