From 4af8915edaa0e25d651b819590c802b18ea1fb67 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 7 Aug 2008 16:42:33 +0000 Subject: Refs #174: Introducing the ElggDummy class which returns false for all methods and set variables called on it. This is what the logged out $_SESSION['user'] is set to and is also what page_owner_entity will return if page_owner is invalid. This means that calls to things like $_SESSION['user']->getGUID() are now safe and will no longer cause a parsing error. Please report any issues. git-svn-id: https://code.elgg.org/elgg/trunk@1770 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/page_elements/title.php') diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index 2e8e3e4b7..845b47dc7 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -19,7 +19,7 @@ $submenu = get_submenu(); // elgg_view('canvas_header/submenu'); if (!empty($submenu)) $submenu = ""; - if ((!$_SESSION['user']) || ($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID())) { + if ($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID()) { $info = "

" . $vars['title'] . "

"; if($page_owner_user instanceOf ElggGroup) { $display = "
" . $info . "
"; -- cgit v1.2.3