Last additions Last additions
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.