From 5ad1bffbdf32ab3e704f74abc16c232c25a7cb2c Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:50:21 +0200 Subject: [PATCH] fix checkbox read correctly --- crouton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crouton.php b/crouton.php index cdffeaf..139ffb6 100644 --- a/crouton.php +++ b/crouton.php @@ -516,7 +516,7 @@ public function adminOptionsPage() } $this->options['root_server'] = $_POST['root_server']; $this->options['service_body_1'] = $_POST['service_body_1']; - $this->options['jsInFooter'] = $_POST['jsInFooter']; + $this->options['jsInFooter'] = isset($_POST['jsInFooter']); $this->options['time_format'] = $_POST['time_format']; $this->options['language'] = $_POST['language']; $this->options['strict_datafields'] = isset($_POST['strict_datafields']);