Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a special case for not trying to instantiate a Model called Mo…

…del in FormHelper
  • Loading branch information...
commit ba012ed950e068b162cfe285721fc7c862c1d532 1 parent 9304f34
@lorenzo lorenzo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/View/Helper/FormHelper.php
View
2  lib/Cake/View/Helper/FormHelper.php
@@ -116,7 +116,7 @@ class FormHelper extends AppHelper {
*/
protected function _getModel($model) {
$object = null;
- if (!$model) {
+ if (!$model || $model === 'Model') {
return $object;
}
Please sign in to comment.
Something went wrong with that request. Please try again.