net/openvpn-legacy: follow fix from core

This commit is contained in:
Franco Fichtner
2025-06-19 19:26:37 +02:00
parent 7f589bdbae
commit aabc7e3daa
@@ -134,7 +134,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($act == "del") {
$response = ["status" => "failed", "message" => gettext("not found")];
if (isset($id) && !empty($a_client[$id])) {
if (isset($id) && !empty($a_server[$id])) {
openvpn_delete('server', $a_server[$id]);
unset($a_server[$id]);
write_config();