From: Tim Düsterhus Date: Wed, 25 Aug 2021 11:21:07 +0000 (+0200) Subject: Return explicit `null` in UserFormField::getSaveValue() X-Git-Tag: 5.4.5_RC_1~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af69293c10a0b80857fca4e1f2e835e76a3a3573;p=GitHub%2FWoltLab%2FWCF.git Return explicit `null` in UserFormField::getSaveValue() --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php index 973807601c..4b365da45f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php @@ -74,7 +74,7 @@ class UserFormField extends AbstractFormField implements { if (empty($this->getUsers())) { if ($this->isNullable()) { - return; + return null; } return 0;