]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed a bug that wouldn't let you specify multiple selects in get_entities().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 8 Dec 2010 19:56:51 +0000 (19:56 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 8 Dec 2010 19:56:51 +0000 (19:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7570 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index 57a98ae40f6328fadd0b9b889fbcd2e41b2750db..8f7d78d3dcafdbc7da94a4abe19575a60fbffff7 100644 (file)
@@ -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()) {