Fix comparison.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 Nov 2008 23:55:04 +0000 (16:55 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 11 Nov 2008 23:55:04 +0000 (16:55 -0700)
framework/Mime/lib/Horde/Mime/Part.php

index 8d3b4fb..80acdaf 100644 (file)
@@ -574,7 +574,8 @@ class Horde_Mime_Part
     public function &getPart($id)
     {
         $this_id = $this->getMimeId();
-        if ($id == $this_id) {
+        /* Need strcmp() because, e.g., '2.0' == '2'. */
+        if (strcmp($id, $this_id) === 0) {
             return $this;
         }