Improve error reporting for `value=null` in `{plural}` template function
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 Apr 2023 09:17:04 +0000 (11:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 Apr 2023 09:17:04 +0000 (11:17 +0200)
commit00a771d06f1272849b9ccd6fe576540de5306149
tree514972ca134056ef69126808fe1d008f171fcdbc
parentcc4b5fa072689ef390be5d51adc962dd0f7b3389
Improve error reporting for `value=null` in `{plural}` template function

Accidental `null`s are a common issue when dealing with database objects,
explicitly detect a `null` to not misleadingly report that the `value`
attribute is missing.

see https://www.woltlab.com/community/thread/299515-fatal-error-nach-update-missing-attribute-value/
wcfsetup/install/files/lib/system/template/plugin/PluralFunctionTemplatePlugin.class.php