aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/title.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 08:35:29 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 08:35:29 +0000
commit0ae549408d75cf61e7f08e988f98dfbeca7c870f (patch)
tree4275e40efb5d664f464299ece60774e26282f89c /views/default/page_elements/title.php
parentb82949eaa9aa511a30e546b324982b6bcb0dd391 (diff)
downloadelgg-0ae549408d75cf61e7f08e988f98dfbeca7c870f.tar.gz
elgg-0ae549408d75cf61e7f08e988f98dfbeca7c870f.tar.bz2
Put minor fix back
git-svn-id: https://code.elgg.org/elgg/trunk@1785 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/title.php')
-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 845b47dc7..fcce14568 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>";