cvs: pear /Net_Sieve Sieve.php

From: Date: Thu, 09 Feb 2006 20:00:00 +0000
Subject: cvs: pear /Net_Sieve Sieve.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38086@lists.php.net to get a copy of this message
amistry Thu Feb 9 20:00:00 2006 UTC Modified files: /pear/Net_Sieve Sieve.php Log: Use isset to check for the starttls capability so as not to emit a warning. http://cvs.php.net/viewcvs.cgi/pear/Net_Sieve/Sieve.php?r1=1.6&r2=1.7&diff_format=u Index: pear/Net_Sieve/Sieve.php diff -u pear/Net_Sieve/Sieve.php:1.6 pear/Net_Sieve/Sieve.php:1.7 --- pear/Net_Sieve/Sieve.php:1.6 Tue Feb 7 10:39:44 2006 +++ pear/Net_Sieve/Sieve.php Thu Feb 9 20:00:00 2006 @@ -381,7 +381,7 @@ $this->_parseCapability($res); // check if we can enable TLS via STARTTLS - if($this->_capability['starttls'] == true && function_exists('stream_socket_enable_crypto') == true) { + if(isset($this->_capability['starttls']) && function_exists('stream_socket_enable_crypto') === true) { if (PEAR::isError($res = $this->_startTLS())) { return $res; } @@ -851,7 +851,7 @@ case 'starttls': $this->_capability['starttls'] = true; - break; + break; } } }

« previous php.pear.cvs (#38086) next »