From 6554056bee3c065469bc6767f31e591889e985e7 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 17:52:19 +0000 Subject: [PATCH] Update file functions.php --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 89b7d0cd..d40c5152 100644 --- a/include/functions.php +++ b/include/functions.php @@ -14,7 +14,7 @@ if(!isset($_SESSION['theme'])) { } if(isset($_GET['theme'])) { - $_SESSION['theme'] = $themes[$_SESSION['theme'] % 2]; + $_SESSION['theme'] = $themes[(int)$_SESSION['theme'] % 2]; } function nav($nav) {