Fixed broken cache method
authorAlexander Ebert <ebert@woltlab.com>
Tue, 29 Nov 2011 18:16:16 +0000 (19:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 29 Nov 2011 18:16:16 +0000 (19:16 +0100)
wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php

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