In mapi.install, the following block includes a typo that causes uninstall to throw an error:

function mapi_uninstall() {
  // wipe ALL mapi related variables
  db_query("DELETE FROM {variables} WHERE name LIKE 'mapi_%s'");

  // remove the programs table.
  db_query("DROP TABLE {mapi_programs}");
}

Should read:

function mapi_uninstall() {
  // wipe ALL mapi related variables
  db_query("DELETE FROM {variable} WHERE name LIKE 'mapi_%s'");

  // remove the programs table.
  db_query("DROP TABLE {mapi_programs}");
}

("variable" should be singular, not plural.)

Comments

rhys’s picture

Thanks for this, I'll make sure that this is fixed when I backport the d6 version to d5.

rhys’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.