}
/**
- * 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
*
* 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;
return $dt;
} else {
$total = get_data_row($query);
- return $total->total;
+ return (int)$total->total;
}
}