adds image id in the order by statement. Without it, you can encounter

problems with searchs returning elements that have same date of
availability, same filename. images.id is the only field you can be sure of
unicity


git-svn-id: http://piwigo.org/svn/trunk@505 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-08-29 17:25:33 +00:00
parent 2884773818
commit c714a9dbaf
+1 -1
View File
@@ -39,7 +39,7 @@
// 2. $conf['order_by'] = " order by file asc";
// will only order pictures by file ascending
// without taking into account the date_available
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC';
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
$conf['nb_image_row'] = array(4,5,6,7,8);
$conf['nb_row_page'] = array(2,3,4,5,6,7,10,20,1000);