cvs: php4 /pear/Mail rfc822.php

From: Date: Fri, 19 Jan 2001 22:55:23 +0000
Subject: cvs: php4 /pear/Mail rfc822.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3706@lists.php.net to get a copy of this message
chagenbu Fri Jan 19 14:55:23 2001 EDT Modified files: /php4/pear/Mail rfc822.php Log: remove a change that broke things, and removing an unused function. Index: php4/pear/Mail/rfc822.php diff -u php4/pear/Mail/rfc822.php:1.4 php4/pear/Mail/rfc822.php:1.5 --- php4/pear/Mail/rfc822.php:1.4 Fri Jan 19 14:28:16 2001 +++ php4/pear/Mail/rfc822.php Fri Jan 19 14:55:22 2001 @@ -22,7 +22,7 @@ * * @author Richard Heyes <richard.heyes@heyes-computing.net> * @author Chuck Hagenbuch <chuck@horde.org> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ class Mail_rfc822 { @@ -96,14 +96,7 @@ $this->structure[] = $return; } } - - if ($this->num_groups === 0) { - $structure = new stdClass; - $structure->groupname = ''; - $structure->addresses = $this->structure; - return array($structure); - } - + return $this->structure; } @@ -372,7 +365,6 @@ // Flat format } else { if ($is_group) { - //$structure = array_merge($structure, $addresses, array(new stdClass)); $structure = array_merge($structure, $addresses); } else { $structure = $addresses; @@ -380,18 +372,6 @@ } return $structure; - } - - /** - * Function to enable "pass by reference trimming". - * Presumably. Doesn't appear to be used anywhere tho...? - * - * @access private - * @param &$string The string to trim. - */ - function myTrim(&$string) - { - $string = trim($string); } /**

« previous php.cvs (#3706) next »