cvs: pear /Mail/Mail RFC822.php

From: Date: Fri, 26 Sep 2003 16:04:18 +0000
Subject: cvs: pear /Mail/Mail RFC822.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13109@lists.php.net to get a copy of this message
chagenbu Fri Sep 26 12:04:18 2003 EDT Modified files: /pear/Mail/Mail RFC822.php Log: Variable initialization (Roman Neuhauser <neuhauser@bellavista.cz>). Index: pear/Mail/Mail/RFC822.php diff -u pear/Mail/Mail/RFC822.php:1.10 pear/Mail/Mail/RFC822.php:1.11 --- pear/Mail/Mail/RFC822.php:1.10 Sat Jul 26 22:02:55 2003 +++ pear/Mail/Mail/RFC822.php Fri Sep 26 12:04:18 2003 @@ -52,7 +52,7 @@ * * @author Richard Heyes <richard@phpguru.org> * @author Chuck Hagenbuch <chuck@horde.org> -* @version $Revision: 1.10 $ +* @version $Revision: 1.11 $ * @license BSD * @package Mail */ @@ -418,6 +418,7 @@ function _validateAddress($address) { $is_group = false; + $addresses = array(); if ($address['group']) { $is_group = true; @@ -458,7 +459,7 @@ // Check that $addresses is set, if address like this: // Groupname:; // Then errors were appearing. - if (!isset($addresses)){ + if (!count($addresses)){ $this->error = 'Empty group.'; return false; } @@ -847,6 +848,7 @@ function _validateLocalPart($local_part) { $parts = explode('.', $local_part); + $words = array(); // Split the local_part into words. while (count($parts) > 0){ @@ -902,5 +904,5 @@ return false; } } + } -?>

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