diff options
author | gnhb <gnoahb@gmail.com> | 2010-10-10 15:48:43 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-10-10 15:48:43 +0700 |
commit | 6adc8e32c726dfe6fd7319ff4cf193b3d42e64a5 (patch) | |
tree | ac35e51d2db4edf5c516cc2810243d73646433ef /etc/inc/gwlb.inc | |
parent | ce3381626d2581c83efa19999f53e7e38a87faad (diff) | |
download | pfsense-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.inc | 2 |
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; } |