aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-02 09:38:14 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-02 09:38:14 +0000
commit97117b7499f9d044bc854851ebcd97bca38507ef (patch)
treef1c39ca68f0bb5e1ee40dd5bf1586b8d5563daa7 /engine
parent43557ce95d766e6d1a4ab19c9767b9532c403e0a (diff)
downloadelgg-97117b7499f9d044bc854851ebcd97bca38507ef.tar.gz
elgg-97117b7499f9d044bc854851ebcd97bca38507ef.tar.bz2
order by bug fixed in get_entities_from_relationship
git-svn-id: https://code.elgg.org/elgg/trunk@3453 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/relationships.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php
index 2ba8a553e..dff087f7b 100644
--- a/engine/lib/relationships.php
+++ b/engine/lib/relationships.php
@@ -515,6 +515,7 @@
return false;
$owner_guid = (int)$owner_guid;
if ($order_by == "") $order_by = "time_created desc";
+ else $order_by = "time_created {$order_by}";
$order_by = sanitise_string($order_by);
$limit = (int)$limit;
$offset = (int)$offset;