From 7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 17 Dec 2010 01:08:23 +0000 Subject: updated the river friend view for the new river code git-svn-id: http://code.elgg.org/elgg/trunk@7649 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/core/river/controls.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/default/core/river/controls.php') diff --git a/views/default/core/river/controls.php b/views/default/core/river/controls.php index 4ab087458..e239a2adb 100644 --- a/views/default/core/river/controls.php +++ b/views/default/core/river/controls.php @@ -9,7 +9,8 @@ $object = $vars['item']->getObjectEntity(); if (isloggedin()) { - if ($vars['item']->annotation_id == 0) { + // comments and non-objects cannot be commented on + if ($object->getType() == 'object' && $vars['item']->annotation_id == 0) { $params = array( 'href' => '#', 'text' => elgg_echo('generic_comments:text'), -- cgit v1.2.3