adapt to changed mime.class.php
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 10:34:16 +0000 (10:34 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 10:34:16 +0000 (10:34 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3319 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index d4ac2e735dc1639724de9841082f4e1cec96fdca..72dc3cdebc610c90327d4fefbbcac615bb9a15c7 100644 (file)
@@ -30,7 +30,8 @@ function mime_structure ($bodystructure, $flags=array()) {
     $read = trim(substr ($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13));
     $msg = &new message();
     $read = trim(substr ($read, 0, -1));
-    $msg = $msg->parseStructure($read,0);
+    $res = $msg->parseStructure($read);
+    $msg = $res[0];
     $msg->setEnt('0');
     if (count($flags)) {
        foreach ($flags as $flag) {