From eb3057ed8be93c8b26381d6a1d905bc942950f3a Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 8 Dec 2010 19:56:51 +0000 Subject: 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 --- engine/lib/entities.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib') 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()) { -- cgit v1.2.3