View Single Post
Old July 24th, 2005, 11:05 PM   #9 (permalink)
Carolem
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 198
I made these changes in the useralbum.php but we still are getting the same results of having to enter a password to see the picture when logged in as the user who is making the album

Quote:
//BUGFIX: changed olstat = yes to no
if ( $isprivate == "yes" && $oldstat == "no" ) {
$pa_password = gen_password();

$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='$pa_password' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
// BUGFIX: changed olstat = no to yes
elseif ( $isprivate == "no" && $oldstat == "yes" ) {
$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
I am not sure that I understand what Astaran means by this:
add 'oldstat' => STRING to typecast call (POST).

Do I need to add something else to make this work?
Carole
Carolem is offline   Reply With Quote