VPN: OpenVPN: Connection Status - fix "attempt to read property...", closes https://github.com/opnsense/core/issues/7388
This commit is contained in:
parent
80b65b0d5d
commit
8071c8700f
|
@ -155,7 +155,7 @@ class ServiceController extends ApiControllerBase
|
|||
$route_entry['id'] = $idx;
|
||||
$route_entry['description'] = '';
|
||||
if (!empty($config_payload[$idx])) {
|
||||
$route_entry['description'] = (string)$config_payload[$idx]->description ?? '';
|
||||
$route_entry['description'] = (string)$config_payload[$idx]['description'] ?? '';
|
||||
}
|
||||
$records[] = $route_entry;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue