Improve interface check in `AbstractHtmlInputNodeProcessorListener`
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 Sep 2016 19:59:20 +0000 (21:59 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 Sep 2016 19:59:20 +0000 (21:59 +0200)
wcfsetup/install/files/lib/system/event/listener/AbstractHtmlInputNodeProcessorListener.class.php

index 3a302b4813ead4209751ea5639f4ea1533874ab8..55785b89f1a7e57a72768e65fb03e4a0e86fb3fa 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\event\listener;
+use wcf\data\DatabaseObjectDecorator;
 use wcf\data\ITitledObject;
 use wcf\system\exception\ImplementationException;
 use wcf\system\html\input\node\HtmlInputNodeProcessor;
@@ -95,7 +96,7 @@ abstract class AbstractHtmlInputNodeProcessorListener implements IParameterizedE
                                        
                                        if (isset($objects[$objectID])) {
                                                $object = $objects[$objectID];
-                                               if (!($object instanceof ITitledObject)) {
+                                               if (!($object instanceof ITitledObject) && !($object instanceof DatabaseObjectDecorator) && !($object->getDecoratedObject() instanceof ITitledObject)) {
                                                        throw new ImplementationException(get_class($object), ITitledObject::class);
                                                }