diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/metastrings.php | 2 | ||||
-rw-r--r-- | engine/tests/api/entity_getter_functions.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index 6cdf9ee47..796655569 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -466,7 +466,7 @@ function elgg_get_metastring_based_objects($options) { $offset = sanitise_int($options['offset']); $query .= " LIMIT $offset, $limit"; } -global $test; if ($test) { var_dump($options, $query); } + $dt = get_data($query, $options['callback']); return $dt; } else { diff --git a/engine/tests/api/entity_getter_functions.php b/engine/tests/api/entity_getter_functions.php index a1f180687..aef7a991e 100644 --- a/engine/tests/api/entity_getter_functions.php +++ b/engine/tests/api/entity_getter_functions.php @@ -980,7 +980,7 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest { $this->assertIsa($entities, 'array'); $this->assertEqual(count($entities), 1); -var_dump($entities); + foreach ($entities as $entity) { $this->assertEqual($entity->getGUID(), $e->getGUID()); $this->assertEqual($entity->$md_name, $md_value); |