aboutsummaryrefslogtreecommitdiff
path: root/friendmostviewed.php
diff options
context:
space:
mode:
Diffstat (limited to 'friendmostviewed.php')
-rw-r--r--friendmostviewed.php2
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);