Преглед изворни кода

adapt to changed mime.class.php

stekkel пре 23 година
родитељ
комит
6329b2af52
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      functions/mime.php

+ 2 - 1
functions/mime.php

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