aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-28 21:25:20 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-28 21:25:20 +0100
commit76781ee5a131f6f765c0ded64f93ac936f442c01 (patch)
tree4a03815910f10eead6ee4507b3df46608e15dfdb /config/squid3
parente358b07541eda0355abb82c72fd466b8d8d516e7 (diff)
downloadpfsense-packages-76781ee5a131f6f765c0ded64f93ac936f442c01.tar.gz
pfsense-packages-76781ee5a131f6f765c0ded64f93ac936f442c01.tar.bz2
pfsense-packages-76781ee5a131f6f765c0ded64f93ac936f442c01.zip
Use consistent checks for empty values
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid_reverse.inc4
1 files changed, 2 insertions, 2 deletions
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']);