mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Auto-free result-set
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1026 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -6,7 +6,6 @@ while ($row = $result->fetch_assoc()) {
|
||||
$privileges[$context][$row["Privilege"]] = $row["Comment"];
|
||||
}
|
||||
}
|
||||
$result->free();
|
||||
$privileges["Server Admin"] += $privileges["File access on server"];
|
||||
$privileges["Databases"]["Create routine"] = $privileges["Procedures"]["Create routine"]; // MySQL bug #30305
|
||||
unset($privileges["Procedures"]["Create routine"]);
|
||||
@@ -55,7 +54,6 @@ if (isset($_GET["host"]) && ($result = $dbh->query("SHOW GRANTS FOR " . $dbh->qu
|
||||
$old_pass = $match[1];
|
||||
}
|
||||
}
|
||||
$result->free();
|
||||
}
|
||||
|
||||
if ($_POST && !$error) {
|
||||
|
Reference in New Issue
Block a user