$baseClass in class ObjectTypeDefinitionEditor needs to be protected
authorRouL <roul@codingcorner.info>
Sun, 8 Jan 2012 14:30:00 +0000 (15:30 +0100)
committerRouL <roul@codingcorner.info>
Sun, 8 Jan 2012 14:30:00 +0000 (15:30 +0100)
$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

wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php

index abef7a77c6b7eb4c95ea6a2f6ccde60373843315..2b52c8dab539c4a8b93495889928459017bd615c 100644 (file)
@@ -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';
 }