From bc21cbc465d9cd4d86265246826ba02515541152 Mon Sep 17 00:00:00 2001 From: Greg Froese Date: Wed, 13 May 2009 13:26:12 +0000 Subject: fixed sorting for most viewed and watermarking files to show proper owner when watermarking images in a group album --- friendmostviewed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'friendmostviewed.php') 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); -- cgit v1.2.3