possible " new album " bug in 1.3.2

CyberB0b

Joined: 2002-12-18
Posts: 5
Posted: Fri, 2002-12-20 21:51

This might be my configuration or a known bug but I couldn't find it in the forums or sourceforge bug list.

I just recently upgraded to gallery 1.3.2 and now when I click " new album " from the albums.php page the last album in my gallery is moved to the front and the new album is in the last slot.

I tracked the problem down to do_comman.php line 170. The numAlbums variable returned the number of albums before the addition of the new one. To fix this I added:

...
$albumDB = new AlbumDB(FALSE);
$numAlbums = $albumDB->numAlbums($gallery->user);
...

-CyberB0b

 
CyberB0b

Joined: 2002-12-18
Posts: 5
Posted: Fri, 2002-12-20 21:53

sorry that was line number 129 not 170

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-12-20 22:36

This is already fixed in the cvs versions of Gallery. Thanks anyway :smile: