aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-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 f86299c6e..358a45c3c 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -549,7 +549,7 @@ abstract class ElggEntity implements
}
/**
- * Returns whether the given user (or current user) has the ability to write to this group.
+ * Returns whether the given user (or current user) has the ability to write to this container.
*
* @param int $user_guid The user.
* @return bool
@@ -1640,7 +1640,8 @@ function get_entity($guid) {
*
* joins => array() Additional joins
*
- * @return array
+ * @return if count, int
+ * if not count, array or false if no entities
*/
function elgg_get_entities(array $options = array()) {
global $CONFIG;
@@ -1773,7 +1774,7 @@ function elgg_get_entities(array $options = array()) {
return $dt;
} else {
$total = get_data_row($query);
- return $total->total;
+ return (int)$total->total;
}
}