mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: avoid log message on missing restart action (fixes df2a727)
This commit is contained in:
@@ -971,11 +971,11 @@ function run_restart_actions($certlist, $modelObj)
|
||||
continue;
|
||||
}
|
||||
// Extract restart actions
|
||||
$_actions = explode(',', $certObj->restartActions);
|
||||
if (empty($_actions)) {
|
||||
if (empty((string)$certObj->restartActions)) {
|
||||
// No restart actions configured.
|
||||
continue;
|
||||
}
|
||||
$_actions = explode(',', $certObj->restartActions);
|
||||
// Walk through all linked restart actions.
|
||||
foreach ($_actions as $_action) {
|
||||
// Extract restart action
|
||||
|
||||
Reference in New Issue
Block a user