Last additions Last additions
 

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

Last additions

Started by reallove, May 30, 2006, 10:32:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

reallove

Hello,
After upgrading to 1.4.6,I have this issue.
I've created a password protected album,but after I upload pictures in it,the last pics added appear in the "last additions" section even for the unregistered users. Clicking on a pic over there,points to..other pic,what it should be there,I suppose.
My gallery's URL is http://dansimiha.websun.ro ,to see.
Thanks,
Dan/reallove

Paver

#1
I have a hunch that this is caused by the same problem noted in this thread.  Please try the same fix. 

Look for this line in functions.inc.php in the function get_meta_album_set($cat, &$meta_album_set):
if ($cpg_show_private_album || $USER_DATA['can_see_all_albums'] && $cat == 0) {


Add in an extra set of parentheses as shown:
<buggy code removed>

Remove $cpg_show_private_album as show:
if ($USER_DATA['can_see_all_albums'] && $cat == 0) {

Let me know if that fixes the problem.

edit: Modified code with correct fix.  Original code still contained a different but related bug.

reallove

I did the little changes to that line,but the problem persists . :(
Dan/reallove

reallove

Upgrading to 1.4.8 seemed to solve the issue,so maybe there was something buggy in 1.4.6 :)
Dan/reallove

Nibbler

As explained in the link Paver gave you.

Paver

As Nibbler said, the link I gave has the correct fix.  I modified my post above to reflect the correct fix as well.