diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-24 13:46:11 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-24 13:46:11 +0000 |
commit | 58f80d3f854e6a67b71ec8f710edaac72ce6b47e (patch) | |
tree | d12ebc454ed9b9a9339606a456dfcef10b48ac86 | |
parent | daa8f5f8b37616d6dcbcb2936dfac9e5b42e7709 (diff) | |
download | elgg-58f80d3f854e6a67b71ec8f710edaac72ce6b47e.tar.gz elgg-58f80d3f854e6a67b71ec8f710edaac72ce6b47e.tar.bz2 |
Fixes #1144: Added comma between order by fields.
git-svn-id: https://code.elgg.org/elgg/trunk@3412 36083f99-b078-4883-b0ff-0f9b5a30f544
-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 +?>
|