mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for #1168
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3317 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
ad32fd4cf2
commit
e683b7090b
1 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,7 @@ class Controller extends Object{
|
|||
if (empty($this->params['pass'])) {
|
||||
$id = false;
|
||||
} else {
|
||||
$id = $this->params['pass'];
|
||||
$id = $this->params['pass']['0'];
|
||||
}
|
||||
$cached = false;
|
||||
$object = null;
|
||||
|
@ -306,6 +306,7 @@ class Controller extends Object{
|
|||
$uses = is_array($this->uses) ? $this->uses : array($this->uses);
|
||||
|
||||
foreach($uses as $modelClass) {
|
||||
$id = false;
|
||||
$cached = false;
|
||||
$object = null;
|
||||
$modelKey = Inflector::underscore($modelClass);
|
||||
|
|
Loading…
Reference in a new issue