aboutsummaryrefslogtreecommitdiffstats
path: root/random.php
diff options
context:
space:
mode:
Diffstat (limited to 'random.php')
-rw-r--r--random.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.php b/random.php
index 7b0deaeb3..e3f3ebf38 100644
--- a/random.php
+++ b/random.php
@@ -52,7 +52,7 @@ SELECT DISTINCT(id)
'WHERE'
).'
ORDER BY RAND(NOW())
- LIMIT 0, '.$conf['top_number'].'
+ LIMIT 0, '.min(50, $conf['top_number'],$user['nb_image_page']).'
;';
// +-----------------------------------------------------------------------+