mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
Fixed tabing formating
This commit is contained in:
parent
faff191cca
commit
3855c0690e
1 changed files with 4 additions and 4 deletions
|
@ -1139,9 +1139,9 @@ class DboSource extends DataSource {
|
||||||
*/
|
*/
|
||||||
protected function _filterResults(&$results, Model $model, $filtered = array()) {
|
protected function _filterResults(&$results, Model $model, $filtered = array()) {
|
||||||
if (!is_array($results)) {
|
if (!is_array($results)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
$current = reset($results);
|
$current = reset($results);
|
||||||
if (!is_array($current)) {
|
if (!is_array($current)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
@ -1255,7 +1255,7 @@ class DboSource extends DataSource {
|
||||||
} else {
|
} else {
|
||||||
$fetch = null;
|
$fetch = null;
|
||||||
}
|
}
|
||||||
if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') {
|
if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') {
|
||||||
$this->_filterResults($fetch, $model);
|
$this->_filterResults($fetch, $model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue