From 97117b7499f9d044bc854851ebcd97bca38507ef Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 2 Sep 2009 09:38:14 +0000 Subject: order by bug fixed in get_entities_from_relationship git-svn-id: https://code.elgg.org/elgg/trunk@3453 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 1 + 1 file changed, 1 insertion(+) (limited to 'engine/lib') 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; -- cgit v1.2.3