cvs: php4 /pear/Mail smtp.php

From: Date: Tue, 06 Nov 2001 20:25:33 +0000
Subject: cvs: php4 /pear/Mail smtp.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1273@lists.php.net to get a copy of this message
chagenbu Tue Nov 6 15:25:33 2001 EDT Modified files: /php4/pear/Mail smtp.php Log: fix typo. Index: php4/pear/Mail/smtp.php diff -u php4/pear/Mail/smtp.php:1.8 php4/pear/Mail/smtp.php:1.9 --- php4/pear/Mail/smtp.php:1.8 Tue Nov 6 09:42:44 2001 +++ php4/pear/Mail/smtp.php Tue Nov 6 15:25:33 2001 @@ -23,7 +23,7 @@ * Net_SMTP:: class. * @access public * @package Mail - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ class Mail_smtp extends Mail { @@ -113,7 +113,7 @@ include_once 'Net/SMTP.php'; if (!($smtp = new Net_SMTP($this->host, $this->port))) { return new PEAR_Error('unable to instantiate Net_SMTP object'); } - if (PEAR::Error($smtp->connect())) { return new PEAR_Error('unable to connect to smtp server ' . $this->host . ':' . $this->port); } + if (PEAR::isError($smtp->connect())) { return new PEAR_Error('unable to connect to smtp server ' . $this->host . ':' . $this->port); } if ($this->auth) { if (PEAR::isError($smtp->auth($this->username, $this->password))) { return new PEAR_Error('unable to authenticate to smtp server'); }

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