diff options
Diffstat (limited to 'engine/lib/relationships.php')
-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; |