aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 19:56:51 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 19:56:51 +0000
commiteb3057ed8be93c8b26381d6a1d905bc942950f3a (patch)
tree26ee63ded151472c821bce3e1beffc539b316398 /engine
parent550a2a551fd706bfde68fbd896a4c49b2fb346c5 (diff)
downloadelgg-eb3057ed8be93c8b26381d6a1d905bc942950f3a.tar.gz
elgg-eb3057ed8be93c8b26381d6a1d905bc942950f3a.tar.bz2
Fixed a bug that wouldn't let you specify multiple selects in get_entities().
git-svn-id: http://code.elgg.org/elgg/trunk@7570 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 57a98ae40..8f7d78d3d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -823,7 +823,7 @@ function elgg_get_entities(array $options = array()) {
if ($options['selects']) {
$selects = '';
foreach ($options['selects'] as $select) {
- $selects = ", $select";
+ $selects .= ", $select";
}
} else {
$selects = '';
@@ -1326,7 +1326,7 @@ function elgg_list_entities(array $options = array(), $getter = 'elgg_get_entiti
if (isset($options['view_type_toggle'])) {
$options['list_type_toggle'] = $options['view_type_toggle'];
}
-
+
$options['count'] = TRUE;
$count = $getter($options);
@@ -2401,7 +2401,7 @@ function elgg_list_registered_entities($options) {
if (isset($options['view_type_toggle'])) {
$options['list_type_toggle'] = $options['view_type_toggle'];
}
-
+
$typearray = array();
if ($object_types = get_registered_entity_types()) {