"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:
phpnut 2008-04-02 20:14:06 +00:00
parent 118c35f0d0
commit 06d06c85d9
2 changed files with 22 additions and 4 deletions

View file

@ -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;