$_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:
jakubvrana
2009-04-16 14:33:58 +00:00
parent c27a8774a0
commit c97325b090
3 changed files with 12 additions and 12 deletions

View File

@@ -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];
}