Fix guest dialog error in unavailable captcha type is used
authorMatthias Schmidt <gravatronics@live.com>
Fri, 26 Oct 2018 17:02:38 +0000 (19:02 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 26 Oct 2018 17:02:38 +0000 (19:02 +0200)
wcfsetup/install/files/lib/data/TMessageQuickReplyGuestDialogAction.class.php

index 4a388fb7bd788e20a089ed8c3beff0c798e8eb87..1ec3ce2aadc65552e89d096ef7cd9624a706a16d 100644 (file)
@@ -78,7 +78,7 @@ trait TMessageQuickReplyGuestDialogAction {
                        throw new \BadMethodCallException("Guest dialogs are only relevant for guests");
                }
                
-               if (CAPTCHA_TYPE) {
+               if (CAPTCHA_TYPE && $this->guestDialogCaptchaObjectType) {
                        /** @var ICaptchaHandler $processor */
                        $processor = $this->guestDialogCaptchaObjectType->getProcessor();