From 63496c1347619b958a0d2d06cf10e71b9c3c305b Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Mon, 22 Apr 2013 15:42:38 +0000 Subject: [PATCH] fixes #1493 --- bureau/class/m_mysql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index 97d4cb6e..10a03c53 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -336,6 +336,7 @@ class m_mysql { $this->dbus->query("DROP DATABASE `$dbname`;"); $db_esc=str_replace('_','\_',$dbname); + $db->query("DELETE FROM mysql.db WHERE Db='$db_esc';"); $db->query("select User from mysql.db where User='".$dbname."' and Db='".$db_esc."' and (Select_priv='Y' or Insert_priv='Y' or Update_priv='Y' or Delete_priv='Y' or Create_priv='Y' or Drop_priv='Y' or References_priv='Y' or Index_priv='Y' or Alter_priv='Y' or Create_tmp_table_priv='Y' or Lock_tables_priv='Y');"); if(!$db->num_rows()){ $this->del_user($dbname);