diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/metadata.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index fe83e15d8..59136eb98 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -516,7 +516,7 @@ if ($order_by == "")
$order_by = "e.time_created desc";
else
- $order_by = "e.time_created {$order_by}";
+ $order_by = "e.time_created, {$order_by}";
$order_by = sanitise_string($order_by);
$site_guid = (int) $site_guid;
if ((is_array($owner_guid) && (count($owner_guid)))) {
@@ -909,4 +909,4 @@ /** Call a function whenever an entity is updated **/
register_elgg_event_handler('update','all','metadata_update');
-?>
\ No newline at end of file +?>
|