Don't "abuse" setters for actually "unsetting" (closing) instances. Better use
[core.git] / inc / classes / main / helper / web / forms / class_WebFormHelper.php
index 2498006a0e64c0dafac6583cf4538c524ce02029..f7c8fa1d2b137f3c6d2dab8df6a2918c35d162f1 100644 (file)
@@ -684,7 +684,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
                }
 
                // Get a configured instance
-               $captchaInstance = ObjectFactory::createObjectByConfiguredName($this->getFormName().'_captcha', array($this, $extraInstance));
+               $captchaInstance = ObjectFactory::createObjectByConfiguredName($this->getFormName() . '_captcha', array($this, $extraInstance));
 
                // Initiate the CAPTCHA
                $captchaInstance->initiateCaptcha();
@@ -751,7 +751,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
         * @return      $isSecured      Whether this form is secured by a CAPTCHA
         */
        public function ifFormSecuredWithCaptcha () {
-               $isSecured = ($this->getConfigInstance()->getConfigEntry($this->getFormName().'_captcha_secured') == 'Y');
+               $isSecured = ($this->getConfigInstance()->getConfigEntry($this->getFormName() . '_captcha_secured') == 'Y');
                return $isSecured;
        }