From: Michael M Slusarz Date: Tue, 11 Nov 2008 23:55:04 +0000 (-0700) Subject: Fix comparison. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=90b6820d0409c87420544e4c57e546c14f4a105d;p=horde.git Fix comparison. --- diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 8d3b4fbb0..80acdafb5 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -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; }