Typo (ticket #1738)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4088 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2006-12-08 17:37:54 +00:00
parent d67977bba0
commit cc9b30ad2f

View file

@ -1877,8 +1877,8 @@ class Model extends Overloadable {
if (defined('CACHE_CHECK') && CACHE_CHECK === true) {
$assoc[] = strtolower(Inflector::pluralize($this->name));
foreach($this->__associations as $key => $asscociation) {
foreach($this->$asscociation as $key => $className) {
foreach($this->__associations as $key => $association) {
foreach($this->$association as $key => $className) {
$check = strtolower(Inflector::pluralize($className['className']));
if (!in_array($check, $assoc)) {