diff options
author | rub <rub@piwigo.org> | 2007-04-14 12:34:44 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-04-14 12:34:44 +0000 |
commit | 8a97ff299e36b1b9a8b555ca91c6e040abd58010 (patch) | |
tree | f5dfa3acd0339ea933427062b02e1eb2a8a6c622 /include/functions_notification.inc.php | |
parent | 1d02741910e961986c67216f98b97fce1c315312 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions_notification.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |