diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-08-29 17:25:33 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-08-29 17:25:33 +0000 |
commit | c714a9dbaf16a92822769ba88b2d6ee721ee5660 (patch) | |
tree | 756f964fb08b6de8b66b1f19ec5526b5af176b1a /include | |
parent | 288477381884604663d246c9054042af6c5b8feb (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/config.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |