aboutsummaryrefslogtreecommitdiffstats
path: root/random.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-07-22 01:29:38 +0000
committerrvelices <rv-github@modusoptimus.com>2008-07-22 01:29:38 +0000
commitb62eb188a2506fa35121a3a7d120d8ae163584dc (patch)
tree6741a8f762ff1af7f251c96c3891ffe86f819577 /random.php
parent60b7843d3a9117694ae5803d5c77e7cb1232183c (diff)
- remove admin :hover css rule (bouncing thumbnails in caddie FF)
- move some code from notification.php to notification.tpl - remove some unused variables from picture.php - make random.php work even if top_number is a lot (some issues solved with url length) git-svn-id: http://piwigo.org/svn/trunk@2446 68402e56-0260-453c-a942-63ccdbb3a9ee
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']).'
;';
// +-----------------------------------------------------------------------+