diff --git a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ModelTraits/OpenVPNClientExportTraits.inc b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ModelTraits/OpenVPNClientExportTraits.inc index db9f20a0..df787fe2 100644 --- a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ModelTraits/OpenVPNClientExportTraits.inc +++ b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ModelTraits/OpenVPNClientExportTraits.inc @@ -193,6 +193,7 @@ trait OpenVPNClientExportTraits { public function validate_legacy(bool $legacy): bool { if ($legacy) { global $legacy_incompatible_ciphers; + $legacy_incompatible_ciphers = $legacy_incompatible_ciphers ?? []; $settings = get_openvpnserver_by_id($this->server->value); if (in_array($settings['data_ciphers_fallback'], $legacy_incompatible_ciphers)) { throw new ConflictError(