From 8dc20889a55a0202aa8ee1e5b0921e73fe00a130 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Wed, 18 Feb 2009 17:00:28 +0000 Subject: fix debug output in send() on non-live machines --- it_mail.class | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/it_mail.class b/it_mail.class index 0995e49..49326b7 100644 --- a/it_mail.class +++ b/it_mail.class @@ -286,9 +286,10 @@ function send() $text .= "--$boundary1--\n"; } - $func = it::is_live() ? "mail" : "ED"; - - return $func($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); + if (it::is_live()) + return mail($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); + else + return ED($to, $this->header_escape($this->subject), $text, $headers, $this->flags); } -- cgit v1.2.3