Improved register_globals

This commit is contained in:
root 2008-08-31 22:27:03 +00:00
parent 0d2043931c
commit 98fa1c3edf

View file

@ -167,7 +167,7 @@
} }
} }
if($id == 4 && $_SESSION['profile']['loggedin'] == 1) if($id == 4 && array_key_exists('loggedin',$_SESSION['profile']) && $_SESSION['profile']['loggedin'] == 1)
{ {
header("location: https://".$_SERVER['HTTP_HOST']."/account.php"); header("location: https://".$_SERVER['HTTP_HOST']."/account.php");
exit; exit;