Skip to content

Commit

Permalink
Merge pull request #327 from helsingborg-stad/fix/acceptance-error-no…
Browse files Browse the repository at this point in the history
…tices

Fix: Acceptance error notices
  • Loading branch information
Anna authored Sep 8, 2023
2 parents 44e56d5 + bc14b7c commit 8d00927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/php/Component/Acceptance/Acceptance.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function init()
}
}

if (is_iterable($this->data['attributeList']['style'])) {
if (!empty($this->data['attributeList']['style']) && is_iterable($this->data['attributeList']['style'])) {
$this->data['attributeList']['style'] = implode(';', $this->data['attributeList']['style']);
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/php/Component/Acceptance/acceptance.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="{{$baseClass}}__modal-description js-suppressed-content-description">
@if($supplierSystemType == 'video')
@button([
'text' => $infoLabel,
'text' => !empty($infoLabel) ? $infoLabel : false,
'color' => 'default',
'style' => 'basic',
'icon' => $icon,
Expand Down

0 comments on commit 8d00927

Please sign in to comment.