From ff6c5b08775defe22906fb4fde8b45467c4088f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 21 Oct 2014 14:59:54 +0200 Subject: [PATCH] prevent ```Undefined variable: captchaObjectType``` If you disable the captcha, you get when creating a commentary the error message: Undefined variable: captchaObjectType on line 610 and 614. This pull request fixes the bug. --- wcfsetup/install/files/lib/data/comment/CommentAction.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index b6024ec316..9f36418847 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -595,6 +595,8 @@ class CommentAction extends AbstractDatabaseObjectAction { * @return array */ public function getGuestDialog() { + $captchaObjectType = null; + if (CAPTCHA_TYPE) { $captchaObjectType = CaptchaHandler::getInstance()->getObjectTypeByName(CAPTCHA_TYPE); if ($captchaObjectType === null) { -- 2.20.1