summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-08 10:11:50 +0545
committerGitHub <noreply@github.com>2017-02-08 10:11:50 +0545
commit2ea70e1a474fd871a007c76841f2a33f34082c58 (patch)
treedda5416688a63affa99e45bc1757ee17c1f544bd /src/usr/local/www/services_dhcp.php
parentb0eb674f8f9c474cbb52a468892cacf5df9e9028 (diff)
downloadpfsense-2ea70e1a474fd871a007c76841f2a33f34082c58.zip
pfsense-2ea70e1a474fd871a007c76841f2a33f34082c58.tar.gz
Part Fix #7233 Allow deletion of empty static map entries
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index 81277fb..a8301b0 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -654,7 +654,7 @@ if ($act == "delpool") {
}
if ($act == "del") {
- if ($a_maps[$_GET['id']]) {
+ if (isset($a_maps[$_GET['id']])) {
/* Remove static ARP entry, if necessary */
if (isset($a_maps[$_GET['id']]['arp_table_static_entry'])) {
mwexec("/usr/sbin/arp -d " . escapeshellarg($a_maps[$_GET['id']]['ipaddr']));
OpenPOWER on IntegriCloud