diff --git a/core/components/formit/elements/snippets/snippet.formitischecked.php b/core/components/formit/elements/snippets/snippet.formitischecked.php index 8c42798c..7e0097f2 100644 --- a/core/components/formit/elements/snippets/snippet.formitischecked.php +++ b/core/components/formit/elements/snippets/snippet.formitischecked.php @@ -31,7 +31,7 @@ $output = ' checked="checked"'; } $input = $modx->fromJSON($input); -if (in_array($options,$input)) { +if (!empty($input) && is_array($input) && in_array($options,$input)) { $output = ' checked="checked"'; } return $output;