From 61d0342a2e74b828e54442e546ee8923fb7993df Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 29 Nov 2011 19:16:16 +0100 Subject: [PATCH] Fixed broken cache method --- .../files/lib/data/object/type/ObjectTypeCache.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php index ad56b38f56..c348ee3c48 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php @@ -125,8 +125,8 @@ class ObjectTypeCache extends SingletonFactory { * @return wcf\data\object\type\ObjectType */ public function getObjectTypeByName($definitionName, $objectTypeName) { - if (isset($this->groupedObjectTypes[$definitionName]) && isset($this->groupedObjectTypes[$definitionName][$typeName])) { - return $this->groupedObjectTypes[$definitionName][$typeName]; + if (isset($this->groupedObjectTypes[$definitionName]) && isset($this->groupedObjectTypes[$definitionName][$objectTypeName])) { + return $this->groupedObjectTypes[$definitionName][$objectTypeName]; } return null; -- 2.20.1