summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-18 16:21:24 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-18 16:21:24 -0400
commitc31d6e7fb1460d895a57f5a6706291e6f5c4db3d (patch)
tree96f920e8285aab125d2f1637f7936569dc91d185
parent1f8040ce2fbd08f0bd2ab439b5a1895cce3ebc93 (diff)
pass type to error
darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz
-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);
}
}