Fix buildMimeIds() when the ID is 0
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 07:06:00 +0000 (00:06 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 07:06:00 +0000 (00:06 -0700)
framework/Mime/lib/Horde/Mime/Part.php

index 830cfd6..a385020 100644 (file)
@@ -1331,7 +1331,9 @@ class Horde_Mime_Part
             }
         } else {
             $this->setMimeId($id);
-            $id .= '.';
+            $id = $id
+                ? $id . '.'
+                : '';
 
             if ($this->getType() == 'message/rfc822') {
                 if (count($this->_parts)) {