summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmaildaemon.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/maildaemon.php b/maildaemon.php
index 185f6609c..c48335fea 100755
--- a/maildaemon.php
+++ b/maildaemon.php
@@ -137,14 +137,14 @@ class MailerDaemon {
} else if ($type == 'text/plain') {
$msg = $parsed->body;
} else {
- $this->unsupported_type($parsed);
+ $this->unsupported_type($type);
}
return array($from, $to, $msg);
}
- function unsupported_type($parsed) {
- $this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n");
+ function unsupported_type($type) {
+ $this->error(NULL, "Unsupported message type: " . $type);
}
}