Fix: set return value (bool)

This commit is contained in:
billz
2025-07-20 14:46:33 -07:00
parent 7a7bdda708
commit c19bd60241

View File

@@ -294,10 +294,11 @@ class DnsmasqManager
system('sudo rm '.RASPI_DNSMASQ_PREFIX.$iface.'.conf', $result);
if ($result == 0) {
$status->addMessage('Dnsmasq configuration for '.$iface.' removed.', 'success');
return true;
} else {
$status->addMessage('Failed to remove dnsmasq configuration for '.$iface.'.', 'danger');
return false;
}
return $result;
}
/**