diff --git a/include/class.email.php b/include/class.email.php
index 29c7ac06bf38d87a4c48962c79b3e3b44ec3948a..e6b10c3892ece68f9d0410a77116f67cf7de61dd 100644
--- a/include/class.email.php
+++ b/include/class.email.php
@@ -132,7 +132,7 @@ class Email {
         $info = array (
                 'host' => $this->ht['smtp_host'],
                 'port' => $this->ht['smtp_port'],
-                'auth' => $this->ht['smtp_auth'],
+                'auth' => (bool) $this->ht['smtp_auth'],
                 'username' => $this->ht['userid'],
                 'password' => Mcrypt::decrypt($this->ht['userpass'], SECRET_SALT)
                 );
@@ -305,7 +305,7 @@ class Email {
             $smtp = mail::factory('smtp',
                     array ('host' => $vars['smtp_host'],
                            'port' => $vars['smtp_port'],
-                           'auth' => $vars['smtp_auth']?true:false,
+                           'auth' => (bool) $vars['smtp_auth'],
                            'username' =>$vars['userid'],
                            'password' =>$passwd,
                            'timeout'  =>20,
diff --git a/include/class.mailer.php b/include/class.mailer.php
index d2e10961ad54339ead528ea6b3a6d7cdfc6032bc..a469d5528f6598489a8a8ecd63b795594f5db322 100644
--- a/include/class.mailer.php
+++ b/include/class.mailer.php
@@ -139,7 +139,7 @@ class Mailer {
             $mail = mail::factory('smtp',
                     array ('host' => $smtp['host'],
                            'port' => $smtp['port'],
-                           'auth' => $smtp['auth']?true:false,
+                           'auth' => $smtp['auth'],
                            'username' => $smtp['username'],
                            'password' => $smtp['password'],
                            'timeout'  =>20,