summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-10-10 15:48:43 +0700
committergnhb <gnoahb@gmail.com>2010-10-10 15:48:43 +0700
commit6adc8e32c726dfe6fd7319ff4cf193b3d42e64a5 (patch)
treeac35e51d2db4edf5c516cc2810243d73646433ef /etc/inc/gwlb.inc
parentce3381626d2581c83efa19999f53e7e38a87faad (diff)
downloadpfsense-6adc8e32c726dfe6fd7319ff4cf193b3d42e64a5.zip
pfsense-6adc8e32c726dfe6fd7319ff4cf193b3d42e64a5.tar.gz
Fix the "all dynamic gateways are shown as default" problem reported here: http://forum.pfsense.org/index.php/topic,28960.0.html
A non-empty string will evaluate true with == operator.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 844cba5..4d1b06f 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -328,7 +328,7 @@ function return_gateways_array($disabled = false) {
$gateway['name'] = $friendly;
$gateway['attribute'] = "system";
- if ($gateway['dynamic'] == "default") {
+ if ($gateway['dynamic'] === "default") {
$gateway['defaultgw'] = true;
$gateway['dynamic'] = true;
}
OpenPOWER on IntegriCloud