diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/user.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index b333c7e4..19d17753 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -25,6 +25,9 @@ class User public static function load() { + if (self::isLoggedIn()) { + return true; + } if (Session::load()) { $uid = Session::get('uid'); if ($uid === false || $uid < 1) self::logout(); @@ -50,7 +53,7 @@ class User public static function logout() { Session::delete(); - Header('Location: ?do=main&fromlogout'); + Header('Location: ?do=Main&fromlogout'); exit(0); } |