aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/pageowner.php4
-rw-r--r--engine/lib/sessions.php10
2 files changed, 7 insertions, 7 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php
index 46394c8c9..a7511a7b6 100644
--- a/engine/lib/pageowner.php
+++ b/engine/lib/pageowner.php
@@ -67,8 +67,8 @@
if ($page_owner > 0)
return get_entity($page_owner);
- //return false;
- return new ElggDummy();
+ return false;
+ //return new ElggDummy();
}
/**
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;
}