mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/acme-client: try to fix "Node no longer exists"
As this harmless warning makes up most of our crash reports, it's time to do something against this. It' doesn't look totally right, but following a similar case on github this might do the trick. See: https://github.com/Atlantic18/DoctrineExtensions/pull/1627/files
This commit is contained in:
@@ -119,7 +119,7 @@ function cert_action_validator($opt_cert_id)
|
||||
|
||||
// Search for cert ID in configuration
|
||||
$configObj = Config::getInstance()->object();
|
||||
if (isset($configObj->OPNsense->AcmeClient->certificates)) {
|
||||
if (isset($configObj->OPNsense->AcmeClient->certificates) && $configObj->OPNsense->AcmeClient->certificates->count() > 0) {
|
||||
foreach ($configObj->OPNsense->AcmeClient->certificates->children() as $certObj) {
|
||||
// Extract cert ID
|
||||
$cert_id = (string)$certObj->id;
|
||||
|
||||
Reference in New Issue
Block a user