diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-05 10:18:51 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-05 10:19:35 +0000 |
commit | 7dbaa205cbf4220d7f357fea6683c00090d62a1a (patch) | |
tree | 2fd099b5804f2922f08101f0ccc6a6f91503a064 | |
parent | 9c2e9c13458e7f201c551e881fde9865b6be4722 (diff) | |
download | pfsense-7dbaa205cbf4220d7f357fea6683c00090d62a1a.zip pfsense-7dbaa205cbf4220d7f357fea6683c00090d62a1a.tar.gz |
Catch up with php5 changes on array.
-rw-r--r-- | usr/local/pkg/routed/routed.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/pkg/routed/routed.inc b/usr/local/pkg/routed/routed.inc index 498bc71..de94fb4 100644 --- a/usr/local/pkg/routed/routed.inc +++ b/usr/local/pkg/routed/routed.inc @@ -32,8 +32,12 @@ function setup_routed() { global $config; $gw = ""; + if (!is_array($config['installedpackages']['routed'])) + return; + if (!is_array($config['installedpackages']['routed']['config'])) + return; if (isset($config['installedpackages']['routed']['config'][0]['enable']) && - $config['installedpackages']['routed']['config'][0]['enable'] == "on") { + $config['installedpackages']['routed']['config'][0]['enable'] == "on") { /* if user selected individual interfaces */ $ifdescrs = array ("wan", "lan"); for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { @@ -108,4 +112,4 @@ function restart_routed() { start_routed(); } -?>
\ No newline at end of file +?> |