Fix possible invalid value for explode
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 1 Jul 2018 18:30:45 +0000 (20:30 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 1 Jul 2018 18:30:57 +0000 (20:30 +0200)
See #2534

wcfsetup/install/files/lib/data/user/group/UserGroup.class.php

index 7ecc873fdae518ada388cb95dfd384f28c28755e..e572b25086bab6fc5674c154dfc54e6fc9fac575 100644 (file)
@@ -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;