From: Magnus Kühn Date: Sun, 26 Feb 2012 07:46:45 +0000 (+0100) Subject: Fixed UserGroupEdit X-Git-Tag: 2.0.0_Beta_1~1306^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf1a6f0424a2f42468e4a95b376eb75728ed8773;p=GitHub%2FWoltLab%2FWCF.git Fixed UserGroupEdit --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php index 52ebce81cb..66192d0f75 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php @@ -105,10 +105,11 @@ class OptionCacheBuilder implements ICacheBuilder { if (!empty($type)) { // strip trailing underscore preg_match_all('~((?:^|[A-Z])[a-z]+)~', $type, $matches); + if (isset($matches[1])) { $className = 'wcf\data\\'; for ($i = 0, $length = count($matches[1]); $i < $length; $i++) { - $className .= $matches[1][$i] . '\\'; + $className .= strtolower($matches[1][$i] . '\\'); } $className .= 'option\\' . ucfirst($type) . 'Option'; } diff --git a/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php index 6fc331e713..8ef035e35a 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php @@ -1,5 +1,5 @@