"Fixed typo in [4221]"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4225 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-12-28 07:28:43 +00:00
parent 93f7a48a2a
commit 90f6c38614

View file

@ -366,7 +366,7 @@ class HtmlHelper extends AppHelper {
$notCheckedValue = -1;
}
} else {
if (isset($htmlAttributes['value']) || (!class_exists($this->model) && !loadModel($this->model))) {
if (isset($htmlAttributes['value']) || (!class_exists($this->model()) && !loadModel($this->model()))) {
$htmlAttributes['checked'] = ($htmlAttributes['value'] == $value) ? 'checked' : null;
if ($htmlAttributes['value'] == '0') {