aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/relationships.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-24 10:09:34 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-24 10:09:34 -0700
commitd7aa2b803949462c8939eb16f072ab53e174c85d (patch)
tree5a9dfd70cdedee435e0c821f1e104f7f1a6a90ed /engine/lib/relationships.php
parent6653c1f66bca719426965d12235f08b05deed187 (diff)
downloadelgg-d7aa2b803949462c8939eb16f072ab53e174c85d.tar.gz
elgg-d7aa2b803949462c8939eb16f072ab53e174c85d.tar.bz2
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.
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r--engine/lib/relationships.php2
1 files changed, 1 insertions, 1 deletions
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);
}