From 6b4fd5ce3381df7a5be612aeaf8fd044d82b62b9 Mon Sep 17 00:00:00 2001 From: Chad Phillips <chad@apartmentlines.com> Date: Sat, 17 Feb 2007 20:28:43 +0000 Subject: [PATCH] wrap drop table in db_table_exists(). --- alt_login.install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alt_login.install b/alt_login.install index eeffa8c..cf74dcf 100644 --- a/alt_login.install +++ b/alt_login.install @@ -35,7 +35,9 @@ function alt_login_install() { * Implementation of hook_uninstall(). */ function alt_login_uninstall() { - $query1 = db_query('DROP TABLE {alt_login}'); + if (db_table_exists('alt_login')) { + $query1 = db_query('DROP TABLE {alt_login}'); + } if ($query1) { drupal_set_message(t('The Alternate Login module has been uninstalled successfully.')); -- GitLab