<?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;
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);
}