summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2012-03-15 10:18:31 +0545
committerPhil Davis <phil.davis@world.inf.org>2012-03-15 10:18:31 +0545
commit29bf947e245a9a3f5202012582e7ba1dde0a57e8 (patch)
treecdb02ab467a59668ebb73b97191bb23e471eda0c /etc
parentefb5b9f10503c12970059e12628b8c949b5abf2b (diff)
downloadpfsense-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-xetc/rc.newwanip2
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) {
OpenPOWER on IntegriCloud