From 3855c0690e43a9e01f0d29961ac5314f45c22420 Mon Sep 17 00:00:00 2001 From: k-halaburda Date: Fri, 9 Aug 2013 10:26:44 +0200 Subject: [PATCH] Fixed tabing formating --- lib/Cake/Model/Datasource/DboSource.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 120ab17e0..9672b4512 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -1139,9 +1139,9 @@ class DboSource extends DataSource { */ protected function _filterResults(&$results, Model $model, $filtered = array()) { if (!is_array($results)) { - return array(); - } - $current = reset($results); + return array(); + } + $current = reset($results); if (!is_array($current)) { return array(); } @@ -1255,7 +1255,7 @@ class DboSource extends DataSource { } else { $fetch = null; } - if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') { + if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') { $this->_filterResults($fetch, $model); } }