From 13ea9d50e35d9dd8cf7235a39d97a344e6091ea0 Mon Sep 17 00:00:00 2001 From: nikrou Date: Wed, 25 Nov 2009 19:02:57 +0000 Subject: Feature 1255: modification in sql queries - manage random function - manage regex syntax - manage quote (single instead of double) - manage interval git-svn-id: http://piwigo.org/svn/trunk@4367 68402e56-0260-453c-a942-63ccdbb3a9ee --- random.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'random.php') diff --git a/random.php b/random.php index 81920aba9..f1adfada5 100644 --- a/random.php +++ b/random.php @@ -51,7 +51,7 @@ SELECT DISTINCT(id) ), 'WHERE' ).' - ORDER BY RAND(NOW()) + ORDER BY '.DB_RANDOM_FUNCTION.'() LIMIT '.min(50, $conf['top_number'],$user['nb_image_page']).' ;'; -- cgit v1.2.3