Use database name in creating new users

This commit is contained in:
Jakub Vrana 2012-12-15 22:33:18 -08:00
parent ab20c18c2e
commit 0069d9f13e

View file

@ -113,7 +113,7 @@ if ($_POST) {
if ($old_pass != "") {
$row["hashed"] = true;
}
$grants[(DB != "" && !isset($_GET["host"]) ? idf_escape(addcslashes(DB, "%_")) : "") . ".*"] = array();
$grants[(DB == "" || $grants ? "" : idf_escape(addcslashes(DB, "%_"))) . ".*"] = array();
}
?>