]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/mail/Mailer.class.php
Imporoved isTrue function to get rid of PHP warnings.
[timetracker.git] / WEB-INF / lib / mail / Mailer.class.php
index 68142028e0b2d48c9120396a25baf6ead1640f61..30f0ffb64b20c8b249d8a1b437bb1b83de7445ee 100644 (file)
@@ -104,8 +104,8 @@ class Mailer {
         $port = defined('MAIL_SMTP_PORT') ? MAIL_SMTP_PORT : '25';
         $username = defined('MAIL_SMTP_USER') ? MAIL_SMTP_USER : null;
         $password = defined('MAIL_SMTP_PASSWORD') ? MAIL_SMTP_PASSWORD : null;
-        $auth = isTrue(MAIL_SMTP_AUTH);
-        $debug = isTrue(MAIL_SMTP_DEBUG);
+        $auth = isTrue('MAIL_SMTP_AUTH');
+        $debug = isTrue('MAIL_SMTP_DEBUG');
 
         $mail = Mail::factory('smtp', array ('host' => $host,
           'port' => $port,
@@ -116,7 +116,7 @@ class Mailer {
         break;
     }
 
-    if (isTrue(MAIL_SMTP_DEBUG))
+    if (isTrue('MAIL_SMTP_DEBUG'))
       PEAR::setErrorHandling(PEAR_ERROR_PRINT);
 
     $res = $mail->send($recipients, $headers, $data);