From 5d6d475f8dc84456c35975073e82e8af261c4bf3 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 27 Mar 2011 00:36:59 +0000 Subject: Fixes #2969 turned off group blog archives git-svn-id: http://code.elgg.org/elgg/trunk@8864 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/blog/views/default') 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( -- cgit v1.2.3