From f803e43dbb0d81c29ad47ddab850cd4a637eb975 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 9 Nov 2009 20:43:05 +0000 Subject: Ignoring empty owner_guids in elgg_get_entities. git-svn-id: http://code.elgg.org/elgg/trunk@3644 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 0afe30a6e..0fa08de58 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1769,6 +1769,7 @@ function elgg_get_entities(array $options = array()) { $offset = sanitise_int($options['offset']); $query .= " LIMIT $offset, $limit"; } + $dt = get_data($query, "entity_row_to_elggstar"); //@todo normalize this to array() @@ -2009,7 +2010,7 @@ function elgg_get_entity_owner_where_sql($table, $owner_guids) { $where = ''; // implode(',', 0) returns 0. - if (FALSE !== $owner_str = implode(',', $owner_guids_sanitised)) { + if (($owner_str = implode(',', $owner_guids_sanitised)) && ($owner_str !== FALSE) && ($owner_str !== '')) { $where = "({$table}.owner_guid IN ($owner_str))"; } -- cgit v1.2.3