Small improvement:

Random selection of pictures on notifications.

git-svn-id: http://piwigo.org/svn/trunk@1957 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2007-04-14 12:25:17 +00:00
parent f386460ec3
commit 4bcb652c77

View file

@ -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();