aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/blog/sidebar.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/blog/views/default/blog/sidebar.php b/mod/blog/views/default/blog/sidebar.php
index b7dfaa2e1..97a23c17e 100644
--- a/mod/blog/views/default/blog/sidebar.php
+++ b/mod/blog/views/default/blog/sidebar.php
@@ -17,7 +17,10 @@ if ($vars['page'] == 'all') {
));
}
-echo elgg_view('blog/sidebar/archives', $vars);
+// only users can have archives at present
+if (elgg_instanceof(elgg_get_page_owner_entity(), 'user')) {
+ echo elgg_view('blog/sidebar/archives', $vars);
+}
if ($vars['page'] != 'friends') {
echo elgg_view('page/elements/tagcloud_block', array(