diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 2 |
1 files changed, 1 insertions, 1 deletions
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");
}
/**
|