From f7788450b85f8be06dc4670a2410576db6408d6d Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 21 Dec 2009 15:11:35 +0000 Subject: Feature 1255: modification in sql queries correction git-svn-id: http://piwigo.org/svn/trunk@4542 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_notification.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions_notification.inc.php') diff --git a/include/functions_notification.inc.php b/include/functions_notification.inc.php index 082356846..77416db01 100644 --- a/include/functions_notification.inc.php +++ b/include/functions_notification.inc.php @@ -463,7 +463,7 @@ SELECT DISTINCT id, path, name, tn_ext, file '.$where_sql.' AND date_available="'.$dates[$i]['date_available'].'" AND tn_ext IS NOT NULL - ORDER BY '.DB_RANDOM_FUNCTION.'()) + ORDER BY '.DB_RANDOM_FUNCTION.'() LIMIT '.$max_elements.' ;'; $dates[$i]['elements'] = array(); -- cgit v1.2.3