diff options
author | Phil Davis <phil.davis@world.inf.org> | 2012-03-15 10:18:31 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2012-03-15 10:18:31 +0545 |
commit | 29bf947e245a9a3f5202012582e7ba1dde0a57e8 (patch) | |
tree | cdb02ab467a59668ebb73b97191bb23e471eda0c /etc | |
parent | efb5b9f10503c12970059e12628b8c949b5abf2b (diff) | |
download | pfsense-29bf947e245a9a3f5202012582e7ba1dde0a57e8.zip pfsense-29bf947e245a9a3f5202012582e7ba1dde0a57e8.tar.gz |
Use better is_array test to check if there are any gifs in the config.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 77141d8..c50b5d3 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -118,7 +118,7 @@ if (!empty($bridgetmp)) system_routing_configure($interface); /* Check Gif tunnels */ -if($config['gifs']['gif'] != ""){ +if(is_array($config['gifs']['gif'])){ foreach($config['gifs']['gif'] as $gif) { if($gif['if'] == $interface) { foreach($config['interfaces'] as $ifname => $ifparent) { |