mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 02:23:59 +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:
@@ -24,7 +24,6 @@ if ($_POST && !$error && !isset($_POST["add_x"])) { // add is an image and PHP c
|
||||
break;
|
||||
}
|
||||
}
|
||||
$result->free();
|
||||
if (!$row) {
|
||||
queries("DROP DATABASE " . idf_escape($_GET["db"]));
|
||||
}
|
||||
@@ -56,7 +55,6 @@ if ($_POST) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$result->free();
|
||||
} elseif (($result = $dbh->query("SHOW CREATE DATABASE " . idf_escape($_GET["db"])))) {
|
||||
$create = $dbh->result($result, 1);
|
||||
if (preg_match('~ COLLATE ([^ ]+)~', $create, $match)) {
|
||||
@@ -65,7 +63,6 @@ if ($_POST) {
|
||||
// default collation
|
||||
$collate = $collations[$match[1]][0];
|
||||
}
|
||||
$result->free();
|
||||
}
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user