mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-02-03 20:40:02 -05:00
Avoid passing null to strlen in SyncJob::addSettingsFormFields()
This commit is contained in:
parent
4692b28dbd
commit
9e8142b79a
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class SyncJob extends JobHook
|
|||
)
|
||||
));
|
||||
|
||||
if (! strlen($form->getSentOrObjectValue('job_name'))) {
|
||||
if ((string) $form->getSentOrObjectValue('job_name') !== '') {
|
||||
if (($ruleId = $form->getSentValue('rule_id')) && array_key_exists($ruleId, $rules)) {
|
||||
$name = sprintf('Sync job: %s', $rules[$ruleId]);
|
||||
$form->getElement('job_name')->setValue($name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue