diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index b1e590ee5..bfbc86798 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -1088,9 +1088,15 @@ class Model extends Object $newData[$key][$value1] = $data[$key][Inflector::singularize($key1)]; } } - } - - return $newData; + } + if (!empty($newData)) + { + return $newData; + } + else + { + return $data; + } } /**