Commit ce7b3c31 authored by Seblu's avatar Seblu
Browse files

fix bad checking on authenticated user, this cause user not be delogged if lost ssl connexion.

parent 16cd098a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ if ($_SESSION["user_right"] == -1) {
 }

// if user is logged and not use https, disconnect it!
if ($_SERVER['HTTPS'] != "on" && $user_id > 0)
if ($_SERVER['HTTPS'] != "on" && $_SESSION["user_id"] > 0)
  userDisconnect();
?>

+2 −2

File changed.

Contains only whitespace changes.