steirico / kirby-plugin-custom-add-fields

Custom fields for Kirby's add dialog.
MIT License
36 stars 4 forks source link

fix: Check if model name is not null #50

Closed duncan412 closed 3 years ago

duncan412 commented 3 years ago

Before passing it to the method_exists, we should check if model name is not null. Prior to PHP 8, this resulted in a PHP warning, but now throws an Exception.

duncan412 commented 3 years ago

Ah, I see @nilshoerrmann just beat me to it.

steirico commented 3 years ago

Close in favour of the #48. Thanks for your contribution.