mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 01:52:40 +00:00
Fixed error caused by code optimizations.
This commit is contained in:
parent
8c7b0f48d8
commit
7efe15393d
1 changed files with 2 additions and 2 deletions
|
@ -666,7 +666,7 @@ class DboSource extends DataSource {
|
|||
|
||||
if ($this->hasResult()) {
|
||||
$first = $this->fetchRow();
|
||||
if ($first !== null) {
|
||||
if ($first != null) {
|
||||
$out[] = $first;
|
||||
}
|
||||
while ($item = $this->fetchResult()) {
|
||||
|
@ -2944,7 +2944,7 @@ class DboSource extends DataSource {
|
|||
$length = $column['limit'];
|
||||
} elseif (isset($real['length'])) {
|
||||
$length = $real['length'];
|
||||
} else {
|
||||
} elseif (isset($real['limit'])) {
|
||||
$length = $real['limit'];
|
||||
}
|
||||
if (isset($length)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue