summaryrefslogtreecommitdiff
path: root/program/lib/mime.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/mime.inc')
-rw-r--r--program/lib/mime.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/mime.inc b/program/lib/mime.inc
index 16fc52daf..860edbff2 100644
--- a/program/lib/mime.inc
+++ b/program/lib/mime.inc
@@ -91,7 +91,8 @@ function iml_GetRawStructureArray($str){
$line = str_replace(")(", ") (", $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);
}
return $struct;