diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 9ede3cfab..daad131a5 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -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') {