From: Joshua Rüsweg Date: Sun, 1 Jul 2018 18:30:45 +0000 (+0200) Subject: Fix possible invalid value for explode X-Git-Tag: 5.2.0_Alpha_1~140^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b61724f59b632f09b7358b2d6756b7068f03611;p=GitHub%2FWoltLab%2FWCF.git Fix possible invalid value for explode See #2534 --- diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php index 7ecc873fda..e572b25086 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -199,7 +199,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { */ public static function isAccessibleGroup(array $groupIDs = []) { if (self::$accessibleGroups === null) { - self::$accessibleGroups = explode(',', WCF::getSession()->getPermission('admin.user.accessibleGroups')); + self::$accessibleGroups = explode(',', WCF::getSession()->getPermission('admin.user.accessibleGroups') ?: ''); } if (empty($groupIDs)) return false;