2
I think that this code $sql = sprintf("DELETE FROM %s WHERE user_avatar = %u", $this->db->prefix('users'), $users->getVar('user_avatar')); should be placed below these lines in delpicture.php:
* Try to delete
*/
if ($album_factory->deleteAll($criteria)){
if ($xoopsModuleConfig['physical_delete']==1){
//unlink($xoopsModuleConfig['path_upload']."\/".$image_name);
unlink(XOOPS_ROOT_PATH."/uploads"."\/".$image_name);
unlink(XOOPS_ROOT_PATH."/uploads"."\/resized_".$image_name);
/**
* Delete the thumb (avatar now has another name)
*/
//if ($avatar_image!=$image_name){
unlink(XOOPS_ROOT_PATH."/uploads"."\/thumb_".$image_name);
//}
}
Please help me to fix it.