aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 05:10:07 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 05:10:07 +0000
commitd219c7312b87a0a18250c0018812e34619bfde43 (patch)
treeebc2650bab17c3195fe6e5e3e1aa7ab392800173 /engine/lib/entities.php
parent82fe58de8541f2287ca28656c2121e3e3496c86f (diff)
downloadelgg-d219c7312b87a0a18250c0018812e34619bfde43.tar.gz
elgg-d219c7312b87a0a18250c0018812e34619bfde43.tar.bz2
Fixes #1242: elgg_get_data() correctly returns an empty array on no results. It still returns false on error, but I consider that the correct behavior. Please reopen if it needs discussion.
git-svn-id: http://code.elgg.org/elgg/trunk@7850 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index e38b0f924..1660d6e4e 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -875,8 +875,6 @@ function elgg_get_entities(array $options = array()) {
}
$dt = get_data($query, $options['row_callback']);
-
- //@todo normalize this to array()
return $dt;
} else {
$total = get_data_row($query);