summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-04-07 10:09:15 +0200
committerWarren Baker <warren@decoy.co.za>2014-04-07 10:09:15 +0200
commitc2fe67ebe0703f18511d1822e37c148853efff81 (patch)
tree248aed042d82aacbc3e854d683f581c2943f8dfd
parentd269747b358f6e8f844e88d39fe36b8f33343d24 (diff)
downloadpfsense-c2fe67ebe0703f18511d1822e37c148853efff81.zip
pfsense-c2fe67ebe0703f18511d1822e37c148853efff81.tar.gz
Dont check for 'checked' but rather if it is just set
-rw-r--r--etc/inc/notices.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index c7ae7db..ea8d220 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'];
OpenPOWER on IntegriCloud