Don't overwrite privileges for existing users

This commit is contained in:
Jakub Vrana 2011-06-03 14:02:19 +02:00
parent 16a72b4521
commit ae50ef7594

View file

@ -111,7 +111,7 @@ if ($_POST) {
if ($old_pass != "") {
$row["hashed"] = true;
}
$grants[$_GET["db"] != "" ? idf_escape($_GET["db"]) . ".*" : ""] = true;
$grants[$_GET["db"] != "" && $_GET["user"] == "" ? idf_escape($_GET["db"]) . ".*" : ""] = array();
}
?>