From 38841b4950f2c0d9876617876b982ce7015a61cf Mon Sep 17 00:00:00 2001 From: frederik Date: Fri, 15 Mar 2024 13:11:20 +0100 Subject: [PATCH] cleanup: make sure $kiosk is defined --- scripts/todays_detections.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index c7d8500..4c117ff 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -24,10 +24,12 @@ if (file_exists('./scripts/thisrun.txt')) { $site_name = $config['SITE_NAME']; } - if($kiosk == true) { +if(isset($kiosk) && $kiosk == true) { echo "

$site_name


"; - } +} else { + $kiosk = false; +} $db = new SQLite3('./scripts/birds.db', SQLITE3_OPEN_READONLY); $db->busyTimeout(1000);