diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-06-05 23:34:41 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-06-05 23:35:01 +0200 |
commit | 347c58b353161cf8e7a25dbd4f37dddd54670513 (patch) | |
tree | 352ddd301bdab34fa9674586cc505bf34c206926 | |
parent | 79d45708d350881932249ae1bb35cc2884cf8837 (diff) | |
download | pfsense-347c58b353161cf8e7a25dbd4f37dddd54670513.zip pfsense-347c58b353161cf8e7a25dbd4f37dddd54670513.tar.gz |
Supress foreach warning on empty array()
-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 a8ea996..4da107a 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -391,7 +391,7 @@ function dhclient_update_gateway_groups_defaultroute($interface = "wan") { function lookup_gateway_ip_by_name($name) { global $config; - if(is_array($config['gateways'])) { + if(is_array($config['gateways']['gateway_item'])) { foreach($config['gateways']['gateway_item'] as $gateway) { if($gateway['name'] == $name) { $gatewayip = $gateway['gateway']; |