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
This commit is contained in:
frytimo 2025-01-17 15:48:49 -04:00 committed by GitHub
parent dc22e87fc2
commit 50125527de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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'])) {