mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
[1163]
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:
parent
9f411d1be4
commit
ee07b4efa9
1 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue