aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sessions.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 18:26:44 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 18:26:44 +0000
commitae13cd8db960e5762b4074d6ec01a9a18b354e4e (patch)
tree2c4dcee528ac69568387f20894893b56941adea2 /engine/lib/sessions.php
parent2469a36b836950f6ae39bb98e2842adf8fbc57cb (diff)
downloadelgg-ae13cd8db960e5762b4074d6ec01a9a18b354e4e.tar.gz
elgg-ae13cd8db960e5762b4074d6ec01a9a18b354e4e.tar.bz2
Removed ElggDummy live code for now.
git-svn-id: https://code.elgg.org/elgg/trunk@1783 36083f99-b078-4883-b0ff-0f9b5a30f544
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;
}