aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 13:01:09 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 13:01:09 +0000
commitc19e10b8b1d196c865d5cdfe4dffa10b0eecdfb6 (patch)
treed9be1855e00802fef62b5c0b381f1c5f1206b70d /views
parentd1cb1ac570a5555d7916c4583f2e7bc1b69e5875 (diff)
downloadelgg-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
Diffstat (limited to 'views')
-rw-r--r--views/default/page_elements/title.php2
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>";