From af69293c10a0b80857fca4e1f2e835e76a3a3573 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 25 Aug 2021 13:21:07 +0200 Subject: [PATCH] Return explicit `null` in UserFormField::getSaveValue() --- .../lib/system/form/builder/field/user/UserFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1