Browse Source

lol gotta love infinite recursion

master
Cerys 4 weeks ago
parent
commit
5e99e31070
  1. 4
      App/Wrappers/SessionWrapper.php

4
App/Wrappers/SessionWrapper.php

@ -11,14 +11,14 @@ class SessionWrapper
if (session_status() == PHP_SESSION_NONE) if (session_status() == PHP_SESSION_NONE)
{ {
session_start(); session_start();
}
if(!isset($_SESSION[SessionElement::IS_LOGGED_IN->value])) if(!isset($_SESSION[SessionElement::IS_LOGGED_IN->value]))
{ {
self::Set(SessionElement::IS_LOGGED_IN, false); self::Set(SessionElement::IS_LOGGED_IN, false);
} }
} }
}
public static function Get(SessionElement $target): mixed public static function Get(SessionElement $target): mixed
{ {
self::Start(); self::Start();

Loading…
Cancel
Save