From 0fe64cf5cc14e614cd03d53a1c3bffcfe39f07e9 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 6 Mar 2017 16:16:42 +0100 Subject: [PATCH] Merge pull request #1300 from pi-hole/fix/deletehostrecord Bugfix for when deleting host-record --- advanced/Scripts/webpage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index a21300ad..5f032ed1 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -134,7 +134,7 @@ trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE3 delete_dnsmasq_setting "host-record" - if [ ! -z "${HOSTRECORD+x}" ]; then + if [ ! -z "${HOSTRECORD}" ]; then add_dnsmasq_setting "host-record" "${HOSTRECORD}" fi