From: Evan Prodromou Date: Fri, 18 Jul 2008 20:21:24 +0000 (-0400) Subject: pass type to error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c31d6e7fb1460d895a57f5a6706291e6f5c4db3d;p=quix0rs-gnu-social.git pass type to error darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz --- 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); } }