summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weber2009-02-18 17:00:28 +0000
committerChristian Weber2009-02-18 17:00:28 +0000
commit8dc20889a55a0202aa8ee1e5b0921e73fe00a130 (patch)
tree84b73814fa07318e4f5cefca05b541eaa74cbf11
parentb3119196d1ceb8a3d6d57e4673e421229cfffec5 (diff)
downloaditools-8dc20889a55a0202aa8ee1e5b0921e73fe00a130.tar.gz
itools-8dc20889a55a0202aa8ee1e5b0921e73fe00a130.tar.bz2
itools-8dc20889a55a0202aa8ee1e5b0921e73fe00a130.zip
fix debug output in send() on non-live machines
-rw-r--r--it_mail.class7
1 files 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);
}