From 437e4e00ec2bb9ff209bed2a772aa52f5b92f97f Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 27 Jun 2008 15:43:47 +0000 Subject: Bug fix for previous. git-svn-id: https://code.elgg.org/elgg/trunk@1188 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index f810cc8ca..74fec6712 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -489,7 +489,7 @@ * @return int Number of comments */ function elgg_count_comments($entity) { - return count_annotations($entity_guid, "", "", $name); + return count_annotations($entity->getGUID(), "", "", "generic_comment"); } /** -- cgit v1.2.3