cvs: pear /Mail_Queue Queue.php
| From: | Lorenzo Alberton | Date: | Tue, 29 Aug 2006 10:05:04 +0000 |
| Subject: | cvs: pear /Mail_Queue Queue.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41905@lists.php.net to get a copy of this message | ||
quipo Tue Aug 29 10:05:04 2006 UTC
Modified files:
/pear/Mail_Queue Queue.php
Log:
check that the send_mail object is instantiated
http://cvs.php.net/viewvc.cgi/pear/Mail_Queue/Queue.php?r1=1.17&r2=1.18&diff_format=u
Index: pear/Mail_Queue/Queue.php
diff -u pear/Mail_Queue/Queue.php:1.17 pear/Mail_Queue/Queue.php:1.18
--- pear/Mail_Queue/Queue.php:1.17 Wed Aug 9 11:02:59 2006
+++ pear/Mail_Queue/Queue.php Tue Aug 29 10:05:04 2006
@@ -17,7 +17,7 @@
// | Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: Queue.php,v 1.17 2006/08/09 11:02:59 quipo Exp $
+// $Id: Queue.php,v 1.18 2006/08/29 10:05:04 quipo Exp $
/**
* Class for handle mail queue managment.
@@ -98,8 +98,8 @@
* // end usage example
* -------------------------------------------------------------------------
*
-* @version $Revision: 1.17 $
-* $Id: Queue.php,v 1.17 2006/08/09 11:02:59 quipo Exp $
+* @version $Revision: 1.18 $
+* $Id: Queue.php,v 1.18 2006/08/29 10:05:04 quipo Exp $
* @author Radek Maciaszek <chief@php.net>
*/
@@ -150,7 +150,7 @@
* Mail_Queue - base class for mail queue managment.
*
* @author Radek Maciaszek <wodzu@tonet.pl>
- * @version $Id: Queue.php,v 1.17 2006/08/09 11:02:59 quipo Exp $
+ * @version $Id: Queue.php,v 1.18 2006/08/29 10:05:04 quipo Exp $
* @package Mail_Queue
* @access public
*/
@@ -320,7 +320,7 @@
E_USER_NOTICE);
}
}
- if ($this->mail_options['persist']) {
+ if ($this->mail_options['persist'] && is_object($this->send_mail))
{
$this->send_mail->disconnect();
}
return true;