Skip to content

Commit

Permalink
Check if array exists
Browse files Browse the repository at this point in the history
  • Loading branch information
stephankellermayr committed Jul 20, 2023
1 parent 4974c96 commit 24cc640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Configuration/IconpackFontawesomeConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ class IconpackFontawesomeConfiguration implements IconpackConfigurationInterface
*/
public function configureIconpack(string $iconpackIdentifier, array $configuration): array
{
if (isset($configuration['categories']) && is_array($configuration['categories'])) {
foreach ($configuration['categories'] as $key => $category) {
$configuration['categories'][$key]['label']
= 'LLL:EXT:iconpack_fontawesome/Resources/Private/Language/locallang_be.xlf:cat.' . $key;
}
}
return $configuration;
}
Expand Down

0 comments on commit 24cc640

Please sign in to comment.