Adding fix for #2552, fixes JavascriptHelper::object does not convert boolean values correctly

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5046 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-12 08:38:12 +00:00
parent 4353341e2c
commit 82755f6685

View file

@ -355,6 +355,9 @@ class JavascriptHelper extends AppHelper {
if ($val === null) {
$val = 'null';
}
if (is_bool($val)){
$val = ife($val, 'true', 'false');
}
}
if (!$numeric) {