From c714a9dbaf16a92822769ba88b2d6ee721ee5660 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 29 Aug 2004 17:25:33 +0000 Subject: 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 --- include/config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/config.inc.php b/include/config.inc.php index bda7fff8a..269cd123a 100644 --- a/include/config.inc.php +++ b/include/config.inc.php @@ -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); -- cgit v1.2.3