1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

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 != "") { if ($old_pass != "") {
$row["hashed"] = true; $row["hashed"] = true;
} }
$grants[$_GET["db"] != "" ? idf_escape($_GET["db"]) . ".*" : ""] = true; $grants[$_GET["db"] != "" && $_GET["user"] == "" ? idf_escape($_GET["db"]) . ".*" : ""] = array();
} }
?> ?>