Skip to content

Commit

Permalink
Fixes #1144: Added comma between order by fields.
Browse files Browse the repository at this point in the history
git-svn-id: https://code.elgg.org/elgg/trunk@3412 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information
brettp committed Jul 24, 2009
1 parent daa8f5f commit 58f80d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/lib/metadata.php
Expand Up @@ -516,7 +516,7 @@ function get_entities_from_metadata($meta_name, $meta_value = "", $entity_type =
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)))) {
Expand Down Expand Up @@ -909,4 +909,4 @@ function register_metadata_url_handler($function_name, $extender_name = "all") {
/** Call a function whenever an entity is updated **/
register_elgg_event_handler('update','all','metadata_update');

?>
?>

0 comments on commit 58f80d3

Please sign in to comment.