Skip to content

Commit

Permalink
Fix PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed May 20, 2022
1 parent 4c5b198 commit dedfc10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FormMPFormPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ private function generateTokens(): array
continue;
}

$summaryToken[] = sprintf('<div data-ff-name="%s" class="label">%s</div>', htmlspecialchars($k), $v['label']);
$summaryToken[] = sprintf('<div data-ff-name="%s" class="value">%s</div>', htmlspecialchars($k), $v['value']);
$summaryToken[] = sprintf('<div data-ff-name="%s" class="label">%s</div>', htmlspecialchars($k), $v['label'] ?? '');
$summaryToken[] = sprintf('<div data-ff-name="%s" class="value">%s</div>', htmlspecialchars($k), $v['value'] ?? '');
}

$tokens['mp_forms_summary'] = implode("\n", $summaryToken);
Expand Down

0 comments on commit dedfc10

Please sign in to comment.