diff options
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/views/default/blog/sidebar/archives.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/blog/views/default/blog/sidebar/archives.php b/mod/blog/views/default/blog/sidebar/archives.php index 5098e6e3e..6529887d4 100644 --- a/mod/blog/views/default/blog/sidebar/archives.php +++ b/mod/blog/views/default/blog/sidebar/archives.php @@ -3,9 +3,12 @@ * Blog archives */ -$loggedin_user = elgg_get_logged_in_user_entity(); $page_owner = elgg_get_page_owner_entity(); +if (!$page_owner) { + return true; +} + if (elgg_instanceof($page_owner, 'user')) { $url_segment = 'blog/archive/' . $page_owner->username; } else { @@ -31,4 +34,4 @@ if ($page_owner && $vars['page'] != 'friends') { echo elgg_view_module('aside', $title, $content); } -}
\ No newline at end of file +} |