fix: [php 7.2] compatibility

pull/8530/head
iglocska 2022-08-04 19:18:45 +02:00
parent 35b4803400
commit fc3439acc1
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class WorkflowShell extends AppShell {
$for_path,
$roamingData,
$concurrentErrors,
$walkResult,
$walkResult
);
$job = $this->Job->read(null, $jobId);
$job['Job']['progress'] = 100;

View File

@ -27,7 +27,7 @@
'function' => function ($row) use ($baseurl) {
return implode('<br />', array_map(function($trigger) use ($baseurl) {
return sprintf('<a href="%s/workflows/moduleView/%s" %s><i class="fa-fw %s"></i> %s</a>',
$baseurl,
h($baseurl),
h($trigger['id']),
!empty($trigger['disabled']) ? sprintf('class="%s" style="%s" title="%s"', 'muted', 'text-decoration: line-through;', __('Trigger disabled')) : '',
$this->FontAwesome->getClass($trigger['icon']),

View File

@ -81,7 +81,7 @@
echo sprintf('<div class="alert alert-error"><strong>%s</strong> %s<div>%s</div></div>',
__('MISP Modules Action Services is not reachable!'),
__('Some modules will not be available.'),
__('Make sure the %s %s is enabled and the action service is reachable.', sprintf('<a href="%s">%s</a>', $baseurl . '/servers/serverSettings/Plugin', __('setting')), sprintf('<code>%s</code>', 'Plugin.Action_services_enable')),
__('Make sure the %s %s is enabled and the action service is reachable.', sprintf('<a href="%s">%s</a>', $baseurl . '/servers/serverSettings/Plugin', __('setting')), sprintf('<code>%s</code>', 'Plugin.Action_services_enable'))
);
}
if (!empty($errorWhileLoading)) {