mirror of
https://github.com/vrana/adminer.git
synced 2026-01-14 11:32:59 +01:00
$_result is not needed for minification
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@584 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -191,19 +191,19 @@ if (extension_loaded("mysqli")) {
|
||||
}
|
||||
|
||||
function query($query) {
|
||||
$_result = parent::query($query);
|
||||
if (!$_result) {
|
||||
$result = parent::query($query);
|
||||
if (!$result) {
|
||||
$errorInfo = $this->errorInfo();
|
||||
$this->error = $errorInfo[2];
|
||||
return false;
|
||||
}
|
||||
$this->_result = $_result;
|
||||
if (!$_result->columnCount()) {
|
||||
$this->affected_rows = $_result->rowCount();
|
||||
$this->_result = $result;
|
||||
if (!$result->columnCount()) {
|
||||
$this->affected_rows = $result->rowCount();
|
||||
return true;
|
||||
}
|
||||
$_result->num_rows = $_result->rowCount();
|
||||
return $_result;
|
||||
$result->num_rows = $result->rowCount();
|
||||
return $result;
|
||||
}
|
||||
|
||||
function multi_query($query) {
|
||||
@@ -218,11 +218,11 @@ if (extension_loaded("mysqli")) {
|
||||
return $this->_result->nextRowset();
|
||||
}
|
||||
|
||||
function result($_result, $field = 0) {
|
||||
if (!$_result) {
|
||||
function result($result, $field = 0) {
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
$row = $_result->fetch();
|
||||
$row = $result->fetch();
|
||||
return $row[$field];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user