Browse Source

ZF-9712: remove captcha and captchaOptions before rendering

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22274 44c647ce-9c0f-0410-b52a-842ac1e357ba
alab 15 years ago
parent
commit
b37f7b3f81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Form/Element/Captcha.php

+ 1 - 1
library/Zend/Form/Element/Captcha.php

@@ -154,7 +154,6 @@ class Zend_Form_Element_Captcha extends Zend_Form_Element_Xhtml
      */
     public function setOptions(array $options)
     {
-        parent::setOptions($options);
         if (array_key_exists('captcha', $options)) {
             if (array_key_exists('captchaOptions', $options)) {
                 $this->setCaptcha($options['captcha'], $options['captchaOptions']);
@@ -164,6 +163,7 @@ class Zend_Form_Element_Captcha extends Zend_Form_Element_Xhtml
             }
             unset($options['captcha']);
         }
+        parent::setOptions($options);
         return $this;
     }