Adding a special case for not trying to instantiate a Model called Model in FormHelper

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-14 11:13:51 -04:30
parent 9304f3420b
commit ba012ed950

View file

@ -116,7 +116,7 @@ class FormHelper extends AppHelper {
*/
protected function _getModel($model) {
$object = null;
if (!$model) {
if (!$model || $model === 'Model') {
return $object;
}