Exception when attempting to restore a disabled thread

    1. Create a new thread and opt for “Delayed publishing”
    2. Move the thread into Trash.
    3. Restore the thread from Trash.
    4. An Exception in thrown in PostAction, line 1390 because of the $post->isDisabled check in line 1312.
    Requested URL
    /forum/index.php?ajax-proxy/&t=5060114ec3a8deed2625800ba09afa203ef908dc
    Referrer
    *snip*
    Error Message
    Undefined index: posts
    Type
    wcf\system\exception\ErrorException
    File (Line)
    /var/www/html/lib/system/WCF.class.php (346)
    Stacktrace
    1. /var/www/html/forum/lib/data/post/PostAction.class.php (1390): wcf\system\WCF::handleError(…)
    2. [internal function] (?): wbb\data\post\PostAction->restore(…)
    3. /var/www/html/lib/data/AbstractDatabaseObjectAction.class.php (204): call_user_func(…)
    4. /var/www/html/forum/lib/data/thread/ThreadAction.class.php (3157): wcf\data\AbstractDatabaseObjectAction->executeAction(…)
    5. /var/www/html/forum/lib/data/thread/ThreadAction.class.php (1168): wbb\data\thread\ThreadAction->restorePosts(…)
    6. [internal function] (?): wbb\data\thread\ThreadAction->restore(…)
    7. /var/www/html/lib/data/AbstractDatabaseObjectAction.class.php (204): call_user_func(…)
    8. /var/www/html/lib/action/AJAXProxyAction.class.php (75): wcf\data\AbstractDatabaseObjectAction->executeAction(…)
    9. /var/www/html/lib/action/AJAXInvokeAction.class.php (104): wcf\action\AJAXProxyAction->invoke(…)
    10. /var/www/html/lib/action/AbstractAction.class.php (47): wcf\action\AJAXInvokeAction->execute(…)
    11. /var/www/html/lib/action/AJAXInvokeAction.class.php (63): wcf\action\AbstractAction->__run(…)
    12. /var/www/html/lib/system/request/Request.class.php (83): wcf\action\AJAXInvokeAction->__run(…)
    13. /var/www/html/lib/system/request/RequestHandler.class.php (96): wcf\system\request\Request->execute(…)
    14. /var/www/html/forum/index.php (9): wcf\system\request\RequestHandler->handle(…)