Changeset 505


Ignore:
Timestamp:
Aug 29, 2004, 7:25:33 PM (20 years ago)
Author:
z0rglub
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config.inc.php

    r497 r505  
    4040//    will only order pictures by file ascending
    4141//    without taking into account the date_available
    42 $conf['order_by'] = ' ORDER BY date_available DESC, file ASC';
     42$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
    4343
    4444$conf['nb_image_row']       = array(4,5,6,7,8);
Note: See TracChangeset for help on using the changeset viewer.