Skip to content
Snippets Groups Projects
Commit 5fb0676c authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add isset($_SESSION) for php5 compatibility

parent 42f54829
Branches
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class user {
*/
private function _autoDetectUser(){
$sUser=false;
if (is_array($_SESSION) && array_key_exists("PHP_AUTH_USER", $_SESSION)){
if (isset($_SESSION) && is_array($_SESSION) && array_key_exists("PHP_AUTH_USER", $_SESSION)){
$sUser=$_SESSION["PHP_AUTH_USER"];
}
if (!$sUser && is_array($_SERVER) && array_key_exists("PHP_AUTH_USER", $_SERVER)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment