mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
fixes #5227, adodb fetch row
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7451 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fb3eb24a0d
commit
1ba01ef786
1 changed files with 16 additions and 10 deletions
|
@ -425,7 +425,16 @@ class DboAdodb extends DboSource {
|
|||
* @return unknown
|
||||
*/
|
||||
function fetchResult() {
|
||||
if (!empty($this->results) && $row = $this->results) {
|
||||
if (!empty($this->results)) {
|
||||
$row = $this->results;
|
||||
} else {
|
||||
$row = $this->_result->FetchRow();
|
||||
}
|
||||
|
||||
if (empty($row)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$resultRow = array();
|
||||
$fields = array_keys($row);
|
||||
$count = count($fields);
|
||||
|
@ -435,9 +444,6 @@ class DboAdodb extends DboSource {
|
|||
$resultRow[$table][$column] = $row[$fields[$i]];
|
||||
}
|
||||
return $resultRow;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue