From 163cbd273598d28f7bb34eccf7b6352fae5ec806 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 3 Feb 2025 11:14:24 +0100 Subject: [PATCH] dnsmasq: migrate to MVC/API, minor style fix https://github.com/opnsense/core/issues/7905 --- src/wizard/system.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wizard/system.xml b/src/wizard/system.xml index 5882d7848..ad98a0504 100644 --- a/src/wizard/system.xml +++ b/src/wizard/system.xml @@ -155,9 +155,7 @@ if (!empty($_POST['secondarydnsserver']) && !is_ipaddrv4($_POST['secondarydnsser if (!empty($input_errors)) { $stepid--; } else { - if (!empty($config['dnsmasq']['enable'])) { - unset($config['dnsmasq']['enable']); - } + $config['dnsmasq']['enable'] = '0'; } ]]>