From c31d6e7fb1460d895a57f5a6706291e6f5c4db3d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 18 Jul 2008 16:21:24 -0400 Subject: [PATCH] pass type to error darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz --- maildaemon.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maildaemon.php b/maildaemon.php index 185f6609c0..c48335fea5 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); } }