From e76fb5058a25b5ee1f35f45e2fd3a5031d4b28e2 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 31 Aug 2008 05:46:04 -0400 Subject: [PATCH] - Fixed style of the headline on the tools page. --- server/plugins-available/mysql_clientdb_plugin.inc.php | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/server/plugins-available/mysql_clientdb_plugin.inc.php b/server/plugins-available/mysql_clientdb_plugin.inc.php index 7055c41..81ada6e 100644 --- a/server/plugins-available/mysql_clientdb_plugin.inc.php +++ b/server/plugins-available/mysql_clientdb_plugin.inc.php @@ -175,11 +175,17 @@ $db_host = 'localhost'; } - mysql_query("DROP USER '".addslashes($data["old"]["database_user"])."'@'$db_host';",$link); - $app->log('Dropping mysql user: '.$data["old"]["database_user"],LOGLEVEL_DEBUG); + if(mysql_query("DROP USER '".addslashes($data["old"]["database_user"])."'@'$db_host';",$link)) { + $app->log('Dropping mysql user: '.$data["old"]["database_user"],LOGLEVEL_DEBUG); + } else { + $app->log('Error while dropping mysql user: '.$data["old"]["database_user"].' '.mysql_error($link),LOGLEVEL_ERROR); + } - mysql_query('DROP DATABASE '.addslashes($data["old"]["database_name"]),$link); - $app->log('Dropping mysql database: '.$data["old"]["database_name"],LOGLEVEL_DEBUG); + if(mysql_query('DROP DATABASE '.addslashes($data["old"]["database_name"]),$link)) { + $app->log('Dropping mysql database: '.$data["old"]["database_name"],LOGLEVEL_DEBUG); + } else { + $app->log('Error while dropping mysql database: '.$data["old"]["database_name"].' '.mysql_error($link),LOGLEVEL_ERROR); + } mysql_query("FLUSH PRIVILEGES;",$link); -- Gitblit v1.9.1