aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 7d11f7214..fcf870e13 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -559,11 +559,12 @@ abstract class ElggEntity implements
* Gets the number of of entities from a specific relationship type
*
* @param string $relationship Relationship type (eg "friends")
+ * @param bool $inverse_relationship
* @return int|false The number of entities or false on failure
*/
- function countEntitiesFromRelationship($relationship) {
- return get_entities_from_relationship($relationship, $this->getGUID(), false, "", "", "",
- "time_created desc", null, null, true);
+ function countEntitiesFromRelationship($relationship, $inverse_relationship = FALSE) {
+ return get_entities_from_relationship($relationship, $this->getGUID(), $inverse_relationship, "", "", "",
+ "time_created desc", null, null, TRUE);
}
/**