mirror of
https://github.com/vrana/adminer.git
synced 2025-08-28 00:29:59 +02:00
Reset error before using in SQL query
This commit is contained in:
@@ -108,6 +108,7 @@ if (!defined("DRIVER")) {
|
||||
*/
|
||||
function query($query, $unbuffered = false) {
|
||||
$result = @($unbuffered ? mysql_unbuffered_query($query, $this->_link) : mysql_query($query, $this->_link)); // @ - mute mysql.trace_mode
|
||||
$this->error = "";
|
||||
if (!$result) {
|
||||
$this->error = mysql_error($this->_link);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user