Author: phpnut
Date: 6:42:00 PM, Saturday, October 22, 2005
Message:
fixed return value in Model::findAll();





git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1164 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2005-10-23 02:39:20 +00:00
parent 9f411d1be4
commit ee07b4efa9

View file

@ -1088,9 +1088,15 @@ class Model extends Object
$newData[$key][$value1] = $data[$key][Inflector::singularize($key1)]; $newData[$key][$value1] = $data[$key][Inflector::singularize($key1)];
} }
} }
} }
if (!empty($newData))
return $newData; {
return $newData;
}
else
{
return $data;
}
} }
/** /**