Update attachment.class.php