diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-09-02 09:38:14 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-09-02 09:38:14 +0000 |
commit | 97117b7499f9d044bc854851ebcd97bca38507ef (patch) | |
tree | f1c39ca68f0bb5e1ee40dd5bf1586b8d5563daa7 | |
parent | 43557ce95d766e6d1a4ab19c9767b9532c403e0a (diff) | |
download | elgg-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
-rw-r--r-- | engine/lib/relationships.php | 1 |
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; |