mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
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:
parent
f386460ec3
commit
4bcb652c77
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue