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 <[EMAIL PROTECTED]>
  * @author  Chuck Hagenbuch <[EMAIL PROTECTED]>
- * @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);
     }
     
     /**



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to