From 50125527de189d6becd93d8803d9cfc0fa27d4a5 Mon Sep 17 00:00:00 2001 From: frytimo Date: Fri, 17 Jan 2025 15:48:49 -0400 Subject: [PATCH] fix php warning for ini set (#7217) The ini setting can only be modified when the session has not already started. This moves the ini_set function call inside the if block --- resources/header.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/header.php b/resources/header.php index d044c9b18e..80c5499234 100644 --- a/resources/header.php +++ b/resources/header.php @@ -28,8 +28,10 @@ require_once __DIR__ . "/require.php"; //start the session - ini_set("session.cookie_httponly", true); - if (!isset($_SESSION)) { session_start(); } + if (!isset($_SESSION)) { + ini_set("session.cookie_httponly", true); + session_start(); + } //set the domains session if (!isset($_SESSION['domains'])) {