From c3d6dec0a319f8346c4d3177059ab7fd356517f8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 13 Jun 2024 13:09:26 +0200 Subject: [PATCH] Properly handle possible NULL values for option values See https://www.woltlab.com/community/thread/306690-explode-passing-null-to-parameter-2-string-of-type-string-is-deprecated/ --- .../option/user/group/BBCodeSelectUserGroupOptionType.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php index 66487a7b09..ab68bc62ac 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php @@ -74,7 +74,7 @@ class BBCodeSelectUserGroupOptionType extends AbstractOptionType implements IUse WCF::getTPL()->assign([ 'bbCodes' => $this->bbCodes, 'option' => $option, - 'selectedBBCodes' => \explode(',', $value), + 'selectedBBCodes' => \explode(',', $value ?: ''), ]); return WCF::getTPL()->fetch('bbCodeSelectOptionType'); -- 2.20.1