mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Adding a special case for not trying to instantiate a Model called Model in FormHelper
This commit is contained in:
parent
9304f3420b
commit
ba012ed950
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class FormHelper extends AppHelper {
|
|||
*/
|
||||
protected function _getModel($model) {
|
||||
$object = null;
|
||||
if (!$model) {
|
||||
if (!$model || $model === 'Model') {
|
||||
return $object;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue