From d7aa2b803949462c8939eb16f072ab53e174c85d Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Tue, 24 Apr 2012 10:09:34 -0700 Subject: Fixes #4409. Selecting distinct across entities.* and entity_relationships.id instead of r.* so entities loaded via elgg_get_entities_from_relationship() have the correct time_created. --- engine/lib/relationships.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index fabe2d2d6..f50c4a485 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -290,7 +290,7 @@ function elgg_get_entities_from_relationship($options) { $options['selects'] = array(); } - $select = array('r.*'); + $select = array('r.id'); $options['selects'] = array_merge($options['selects'], $select); } -- cgit v1.2.3