From ae13cd8db960e5762b4074d6ec01a9a18b354e4e Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 7 Aug 2008 18:26:44 +0000 Subject: Removed ElggDummy live code for now. git-svn-id: https://code.elgg.org/elgg/trunk@1783 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/pageowner.php | 4 ++-- engine/lib/sessions.php | 10 +++++----- 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; } -- cgit v1.2.3