From 58f80d3f854e6a67b71ec8f710edaac72ce6b47e Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 24 Jul 2009 13:46:11 +0000 Subject: Fixes #1144: Added comma between order by fields. git-svn-id: https://code.elgg.org/elgg/trunk@3412 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 4 ++-- 1 file 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 +?> -- cgit v1.2.3