mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/acme-client: avoid error message if no restart action was specified
This commit is contained in:
parent
601286cb8a
commit
df2a7278fa
1 changed files with 4 additions and 1 deletions
|
|
@ -887,8 +887,11 @@ function run_restart_actions($certlist, $modelObj)
|
|||
}
|
||||
// Extract restart actions
|
||||
$_actions = explode(',', $certObj->restartActions);
|
||||
if (empty($_actions)) {
|
||||
// No restart actions configured.
|
||||
continue;
|
||||
}
|
||||
// Walk through all linked restart actions.
|
||||
$_actions = explode(',', $certObj->restartActions);
|
||||
foreach ($_actions as $_action) {
|
||||
// Extract restart action
|
||||
$action = $modelObj->getByActionID($_action);
|
||||
|
|
|
|||
Loading…
Reference in a new issue