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:
parent
dc22e87fc2
commit
50125527de
|
|
@ -28,8 +28,10 @@
|
||||||
require_once __DIR__ . "/require.php";
|
require_once __DIR__ . "/require.php";
|
||||||
|
|
||||||
//start the session
|
//start the session
|
||||||
|
if (!isset($_SESSION)) {
|
||||||
ini_set("session.cookie_httponly", true);
|
ini_set("session.cookie_httponly", true);
|
||||||
if (!isset($_SESSION)) { session_start(); }
|
session_start();
|
||||||
|
}
|
||||||
|
|
||||||
//set the domains session
|
//set the domains session
|
||||||
if (!isset($_SESSION['domains'])) {
|
if (!isset($_SESSION['domains'])) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue