From: Alexander Ebert Date: Tue, 29 Nov 2011 18:16:16 +0000 (+0100) Subject: Fixed broken cache method X-Git-Tag: 2.0.0_Beta_1~1559^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61d0342a2e74b828e54442e546ee8923fb7993df;p=GitHub%2FWoltLab%2FWCF.git Fixed broken cache method --- 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;