diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-05-13 13:26:12 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-05-13 13:26:12 +0000 |
commit | bc21cbc465d9cd4d86265246826ba02515541152 (patch) | |
tree | 6f8fc7b6d54ed9d3c5494ced2a44d671b2481871 /friendmostviewed.php | |
parent | b32a22535f4b41187475618769d0a4d07aba6684 (diff) | |
download | elgg-bc21cbc465d9cd4d86265246826ba02515541152.tar.gz elgg-bc21cbc465d9cd4d86265246826ba02515541152.tar.bz2 |
fixed sorting for most viewed and watermarking files to show proper owner when watermarking images in a group album
Diffstat (limited to 'friendmostviewed.php')
-rw-r--r-- | friendmostviewed.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/friendmostviewed.php b/friendmostviewed.php index 901a8ff08..a196f51af 100644 --- a/friendmostviewed.php +++ b/friendmostviewed.php @@ -38,7 +38,7 @@ INNER JOIN " . $prefix . "metastrings ms ON md.value_id = ms.id INNER JOIN " . $prefix . "metastrings ms2 ON md.name_id = ms2.id AND ms2.string = 'tp_views' WHERE ent.owner_guid = " . $user->guid . " - ORDER BY views DESC LIMIT $max"; + ORDER BY (views+0) DESC LIMIT $max"; $result = get_data($sql); |