diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 13:01:09 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 13:01:09 +0000 |
commit | c19e10b8b1d196c865d5cdfe4dffa10b0eecdfb6 (patch) | |
tree | d9be1855e00802fef62b5c0b381f1c5f1206b70d | |
parent | d1cb1ac570a5555d7916c4583f2e7bc1b69e5875 (diff) | |
download | elgg-c19e10b8b1d196c865d5cdfe4dffa10b0eecdfb6.tar.gz elgg-c19e10b8b1d196c865d5cdfe4dffa10b0eecdfb6.tar.bz2 |
Refs #174: Checking that session user exists before calling methods on it
git-svn-id: https://code.elgg.org/elgg/trunk@1757 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/page_elements/title.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index fd5ccba06..2e8e3e4b7 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 = "<ul>" . $submenu . "</ul>"; - if($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID()) { + if ((!$_SESSION['user']) || ($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID())) { $info = "<h2>" . $vars['title'] . "</h2>"; if($page_owner_user instanceOf ElggGroup) { $display = "<div id=\"content_area_group_title\">" . $info . "</div>"; |