From: RouL Date: Sun, 8 Jan 2012 14:30:00 +0000 (+0100) Subject: $baseClass in class ObjectTypeDefinitionEditor needs to be protected X-Git-Tag: 2.0.0_Beta_1~1444^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec30fdf49338c8e8418da233753757dd4ed51e19;p=GitHub%2FWoltLab%2FWCF.git $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 --- 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'; }