Fix a bug that unable to delete all options.

the line
tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$products_id . "'");
must be before :
if (isset($HTTP_POST_VARS['option'])) {
around line 270.

More...