From: Joshua Rüsweg Date: Tue, 21 Oct 2014 12:59:54 +0000 (+0200) Subject: prevent ```Undefined variable: captchaObjectType``` X-Git-Tag: 2.1.0_Alpha_1~216^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff6c5b08775defe22906fb4fde8b45467c4088f5;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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) {