aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>";