From 3ccb7fc3151073df549f4b0e803ff74cae8e9d87 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 23 May 2015 20:45:43 +0545 Subject: Consistent clear_subsystem_dirty after unbound restart from services_dhcp. This looks like it is wanting curlies to put all clear_subsytem_dirty inside the "if". --- usr/local/www/services_dhcp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index f0b5be9..69846d5 100644 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -504,10 +504,11 @@ if ((isset($_POST['submit']) || isset($_POST['apply'])) && (!$input_errors)) { } } else if (isset($config['unbound']['enable']) && isset($config['unbound']['regdhcpstatic'])) { $retvaldns = services_unbound_configure(); - if ($retvaldns == 0) + if ($retvaldns == 0) { clear_subsystem_dirty('unbound'); clear_subsystem_dirty('hosts'); clear_subsystem_dirty('staticmaps'); + } } else { $retvaldhcp = services_dhcpd_configure(); if ($retvaldhcp == 0) -- cgit v1.1