mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 13:02:40 +00:00
"Fixes #4339, Providing null for variable with underscores leads to camelcased variable in view"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6626 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
118c35f0d0
commit
06d06c85d9
2 changed files with 22 additions and 4 deletions
|
@ -577,7 +577,7 @@ class Controller extends Object {
|
|||
if ($name == 'title') {
|
||||
$this->pageTitle = $value;
|
||||
} else {
|
||||
if ($two === null) {
|
||||
if ($two === null && is_array($one)) {
|
||||
$this->viewVars[Inflector::variable($name)] = $value;
|
||||
} else {
|
||||
$this->viewVars[$name] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue