diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-09 21:50:27 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-09 21:50:27 +0000 |
commit | 3f24dd1226b3d6264c63590c46475772dcb6456d (patch) | |
tree | 6e9a36a632e037ca49422ed6e92a0b3a984c5e3b /usr/local | |
parent | bfe776f0b7853e110a9a587522b4e8b0a778e8b3 (diff) | |
download | pfsense-3f24dd1226b3d6264c63590c46475772dcb6456d.zip pfsense-3f24dd1226b3d6264c63590c46475772dcb6456d.tar.gz |
Array checks too.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index aef0c03..5606d9a 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -199,7 +199,8 @@ if ($_GET['act'] == "del") { if($id == "lan") { unset($config['interfaces']['lan']); - unset($config['dhcpd']['lan']); + if (is_array($config['dhcpd'])) + unset($config['dhcpd']['lan']); unset($config['shaper']); unset($config['ezshaper']); unset($config['nat']); |