From c2fe67ebe0703f18511d1822e37c148853efff81 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Mon, 7 Apr 2014 10:09:15 +0200 Subject: [PATCH] Dont check for 'checked' but rather if it is just set --- etc/inc/notices.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index c7ae7db788..ea8d22073d 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -309,8 +309,8 @@ function send_smtp_message($message, $subject = "(no subject)") { $smtp->host_port = empty($config['notifications']['smtp']['port']) ? 25 : $config['notifications']['smtp']['port']; $smtp->direct_delivery = 0; - $smtp->ssl = ($config['notifications']['smtp']['ssl'] == "checked") ? 1 : 0; - $smtp->tls = ($config['notifications']['smtp']['tls'] == "checked") ? 1 : 0; + $smtp->ssl = (isset($config['notifications']['smtp']['ssl'])) ? 1 : 0; + $smtp->tls = (isset($config['notifications']['smtp']['tls'])) ? 1 : 0; $smtp->debug = 0; $smtp->html_debug = 0; $smtp->localhost=$config['system']['hostname'].".".$config['system']['domain'];