mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
Reset error before using in SQL query
This commit is contained in:
@@ -24,6 +24,7 @@ if (extension_loaded('pdo')) {
|
||||
|
||||
function query($query, $unbuffered = false) {
|
||||
$result = parent::query($query);
|
||||
$this->error = "";
|
||||
if (!$result) {
|
||||
$errorInfo = $this->errorInfo();
|
||||
$this->error = $errorInfo[2];
|
||||
|
Reference in New Issue
Block a user