summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-01 17:03:29 +0000
committeralecpl <alec@alec.pl>2009-06-01 17:03:29 +0000
commita36cf6d2373f71f3293dbf743117009caab1a77a (patch)
tree6a9c58c802b6d818a11fc66c2d56794d83c6cce9 /program/lib
parent47f072523b06b8f0aa5981b593862172963a6f98 (diff)
- PHP-5.3 compat. fix (#1485880)
Diffstat (limited to 'program/lib')
-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;