summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-08 10:11:50 +0545
committerRenato Botelho <renato@netgate.com>2017-02-08 07:05:36 -0200
commitc940afeee675f0e4bdf31c7737e0c60f36674565 (patch)
tree31f1a1ecde092494a1e4507f55a2e83a2b754d1a /src/usr
parent0f742e5147dc7cac9bca27c00e60676a729edcd6 (diff)
downloadpfsense-c940afeee675f0e4bdf31c7737e0c60f36674565.zip
pfsense-c940afeee675f0e4bdf31c7737e0c60f36674565.tar.gz
Part Fix #7233 Allow deletion of empty static map entries
(cherry picked from commit 2ea70e1a474fd871a007c76841f2a33f34082c58)
Diffstat (limited to 'src/usr')
-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 5baf228..1ba6607 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -687,7 +687,7 @@ if ($act == "delpool") {
}
if ($act == "del") {
- if ($a_maps[$_GET['id']]) {
+ if (isset($a_maps[$_GET['id']])) {
unset($a_maps[$_GET['id']]);
write_config();
if (isset($config['dhcpd'][$if]['enable'])) {
OpenPOWER on IntegriCloud