aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-04-14 12:25:17 +0000
committerrub <rub@piwigo.org>2007-04-14 12:25:17 +0000
commit4bcb652c77732c9f91b458218df68115a89aefe0 (patch)
tree3d56010e9448bcaf9913d66c005e59b74ccd88a0 /include
parentf386460ec31490ced9d169afe500dfb00ae3aed8 (diff)
Small improvement:
Random selection of pictures on notifications. git-svn-id: http://piwigo.org/svn/trunk@1957 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_notification.inc.php1
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();