aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-12-13 03:57:54 +0100
committerSem <sembrestels@riseup.net>2012-12-13 03:57:54 +0100
commitfd65cecdd7be2af0b86e193aa85e9ca99c8a43ae (patch)
tree2ce7c87b785b0b9172e52d9390a03d1e175fa805
parent0ee05b2865942bad4cef7a1b038ad40fbdd602e1 (diff)
parent8691b9b9a7f7e9f9537dfeb7fe9831a2d267b7f2 (diff)
downloadelgg-fd65cecdd7be2af0b86e193aa85e9ca99c8a43ae.tar.gz
elgg-fd65cecdd7be2af0b86e193aa85e9ca99c8a43ae.tar.bz2
Merge branch 'blog-sidebar' of github.com:sembrestels/Elgg into foxglove-1
-rw-r--r--mod/blog/views/default/blog/sidebar/archives.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/blog/views/default/blog/sidebar/archives.php b/mod/blog/views/default/blog/sidebar/archives.php
index 3d8f28ca4..f6e41002f 100644
--- a/mod/blog/views/default/blog/sidebar/archives.php
+++ b/mod/blog/views/default/blog/sidebar/archives.php
@@ -3,10 +3,9 @@
* Blog archives
*/
-$loggedin_user = elgg_get_logged_in_user_entity();
$page_owner = elgg_get_page_owner_entity();
-if (elgg_instanceof($page_owner, 'user')) {
+if ($page_owner && elgg_instanceof($page_owner, 'user')) {
$url_segment = 'blog/archive/' . $page_owner->username;
} else {
$url_segment = 'blog/group/' . $page_owner->getGUID() . '/archive';