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