aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/relationships.php
diff options
context:
space:
mode:
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 dff087f7b..47ab619d6 100644
--- a/engine/lib/relationships.php
+++ b/engine/lib/relationships.php
@@ -515,7 +515,7 @@
return false;
$owner_guid = (int)$owner_guid;
if ($order_by == "") $order_by = "time_created desc";
- else $order_by = "time_created {$order_by}";
+ else $order_by = "time_created, {$order_by}";
$order_by = sanitise_string($order_by);
$limit = (int)$limit;
$offset = (int)$offset;