Przeglądaj źródła

Cast ini values to bool upon checking. Resolves ZF-7017

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16077 44c647ce-9c0f-0410-b52a-842ac1e357ba
cogo 16 lat temu
rodzic
commit
69fe4d6eb5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      library/Zend/Service/ReCaptcha.php

+ 2 - 2
library/Zend/Service/ReCaptcha.php

@@ -387,14 +387,14 @@ class Zend_Service_ReCaptcha extends Zend_Service_Abstract
 
         $host = self::API_SERVER;
 
-        if ($this->_params['ssl'] === true) {
+        if ((bool) $this->_params['ssl'] === true) {
             $host = self::API_SECURE_SERVER;
         }
 
         $htmlBreak = '<br>';
         $htmlInputClosing = '>';
 
-        if ($this->_params['xhtml'] === true) {
+        if ((bool) $this->_params['xhtml'] === true) {
             $htmlBreak = '<br />';
             $htmlInputClosing = '/>';
         }