From 6adc8e32c726dfe6fd7319ff4cf193b3d42e64a5 Mon Sep 17 00:00:00 2001 From: gnhb Date: Sun, 10 Oct 2010 15:48:43 +0700 Subject: 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. --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/gwlb.inc') 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; } -- cgit v1.1