This is not a complete file.

Bug in v1.2, in case 'confirmaddressdelete':

CHANGE LINE
$check_default_query = tep_db_query("select customers_default_address_id as defid from " . TABLE_CUSTOMERS . " where c.customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "'");
TO
$check_default_query = tep_db_query("select customers_default_address_id as defid from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "'");


More...