aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sessions.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r--engine/lib/sessions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 4b3c35290..54cd6169e 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -185,7 +185,7 @@
$code = md5($code);
$_SESSION['guid'] = 0;
$_SESSION['id'] = 0;
- $_SESSION['user'] = new ElggDummy();
+ // $_SESSION['user'] = new ElggDummy();
if ($user = get_user_by_code($code)) {
$_SESSION['user'] = $user;
$_SESSION['id'] = $user->getGUID();
@@ -193,7 +193,7 @@
$_SESSION['code'] = $_COOKIE['elggperm'];
}
} else {
- $_SESSION['user'] = new ElggDummy();
+ //$_SESSION['user'] = new ElggDummy();
$_SESSION['id'] = 0;
$_SESSION['guid'] = 0;
}
@@ -203,13 +203,13 @@
if ($user = get_user_by_code($code)) {
$_SESSION['user'] = $user;
} else {
- //unset($_SESSION['user']);
- $_SESSION['user'] = new ElggDummy();
+ unset($_SESSION['user']);
+ // $_SESSION['user'] = new ElggDummy();
$_SESSION['guid'] = 0;
$_SESSION['id'] = 0;
}
} else {
- $_SESSION['user'] = new ElggDummy();
+ //$_SESSION['user'] = new ElggDummy();
$_SESSION['guid'] = 0;
$_SESSION['id'] = 0;
}