From bf1a6f0424a2f42468e4a95b376eb75728ed8773 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20K=C3=BChn?= Date: Sun, 26 Feb 2012 08:46:45 +0100 Subject: [PATCH] Fixed UserGroupEdit --- .../lib/system/cache/builder/OptionCacheBuilder.class.php | 3 ++- .../option/user/group/UserGroupsUserGroupOptionType.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@