From ec30fdf49338c8e8418da233753757dd4ed51e19 Mon Sep 17 00:00:00 2001 From: RouL Date: Sun, 8 Jan 2012 15:30:00 +0100 Subject: [PATCH] $baseClass in class ObjectTypeDefinitionEditor needs to be protected $baseClass in class ObjectTypeDefinitionEditor needs to be protected as in DatabaseObjectDecorator. If not this can lead to the following error: [08-Jan-2012 15:05:33] PHP Fatal error: Access to undeclared static property: wcf\data\object\type\definition\ObjectTypeDefinitionEditor::$baseClass in /var/www/wcf/lib/data/DatabaseObjectDecorator.class.php on line 79 Tested on Debian Squeeze with PHP version 5.3.3-7+squeeze3 --- .../object/type/definition/ObjectTypeDefinitionEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php index abef7a77c6..2b52c8dab5 100644 --- a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php +++ b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php @@ -16,5 +16,5 @@ class ObjectTypeDefinitionEditor extends DatabaseObjectEditor { /** * @see wcf\data\DatabaseObjectDecorator::$baseClass */ - public static $baseClass = 'wcf\data\object\type\definition\ObjectTypeDefinition'; + protected static $baseClass = 'wcf\data\object\type\definition\ObjectTypeDefinition'; } -- 2.20.1