sorting in toprated album sorting in toprated album
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

sorting in toprated album

Started by Titooy, May 04, 2005, 12:19:21 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Titooy

If some pictures have the same number of votes and the same rating, the order can be different on the thumb page than in the displayimage. That problem was already reported on CPG 1.3.x

My suggestion: on line 1141 of functions.inc.php,

change$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC $limit
into$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC, pid DESC $limit
since pid is unique and then we're certain that the order will be the same.

Joachim Müller

committed fix as suggested - please confirm.

Joachim

Titooy