From 76781ee5a131f6f765c0ded64f93ac936f442c01 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sat, 28 Nov 2015 21:25:20 +0100 Subject: Use consistent checks for empty values --- config/squid3/34/squid_reverse.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/squid3/34/squid_reverse.inc b/config/squid3/34/squid_reverse.inc index 559c9d5b..74aab0a1 100755 --- a/config/squid3/34/squid_reverse.inc +++ b/config/squid3/34/squid_reverse.inc @@ -337,7 +337,7 @@ function squid_reverse_enabled() { if ($config['installedpackages']['squidreversegeneral']['config'][0]['reverse_http'] == "on" || $config['installedpackages']['squidreversegeneral']['config'][0]['reverse_https'] == "on") { // ... and has at least one reverse interface configured - if ($config['installedpackages']['squidreversegeneral']['config'][0]['reverse_interface'] != "") { + if (!empty($config['installedpackages']['squidreversegeneral']['config'][0]['reverse_interface'])) { $reverse_proxy_enabled = true; } } @@ -410,7 +410,7 @@ function squid_validate_reverse($post, &$input_errors) { } if ($post['reverse_http'] == 'on' || $post['reverse_https'] == 'on') { - if ($post['reverse_interface'] == '') { + if (empty($post['reverse_interface'])) { $input_errors[] = "You must select at least one interface under 'Reverse Proxy Interface(s)' to enable HTTP Reverse Proxy."; } $fqdn = trim($post['reverse_external_fqdn']); -- cgit v1.2.3