- PHP-5.3 compat. fix (#1485880)

release-0.6
alecpl 16 years ago
parent 47f072523b
commit a36cf6d237

@ -91,7 +91,8 @@ function iml_GetRawStructureArray($str){
$line = str_replace(")(", ") (", $line); $line = str_replace(")(", ") (", $line);
$struct = iml_ParseBSString($line); $struct = iml_ParseBSString($line);
if ((strcasecmp($struct[0], "message")==0) && (strcasecmp($struct[1], "rfc822")==0)){ if (!is_array($struct[0]) && (strcasecmp($struct[0], "message")==0)
&& (strcasecmp($struct[1], "rfc822")==0)) {
$struct = array($struct); $struct = array($struct);
} }
return $struct; return $struct;

Loading…
Cancel
Save