From 8a97ff299e36b1b9a8b555ca91c6e040abd58010 Mon Sep 17 00:00:00 2001 From: rub Date: Sat, 14 Apr 2007 12:34:44 +0000 Subject: Merge BSF 1956:1958 into branch-1_7 Small improvement: Random selection of pictures on notifications. Caddie: Fix issue when the are not pictures attached to disassociated categories git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1959 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_notification.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/functions_notification.inc.php') diff --git a/include/functions_notification.inc.php b/include/functions_notification.inc.php index c744e046b..5462f43e2 100644 --- a/include/functions_notification.inc.php +++ b/include/functions_notification.inc.php @@ -478,6 +478,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 RAND(NOW()) LIMIT 0,'.$max_elements.' ;'; $dates[$i]['elements'] = array(); -- cgit v1.2.3