Skip to content

Commit

Permalink
[BUGFIX] Use correct fallback value for undefined array key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwemer committed Jan 17, 2025
1 parent 5b3692f commit 9deee38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Utility/FrontendUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public static function isAllowedToEdit(array $settings, $mail): bool
$feUserGroups,
true
);
$usersSettings = GeneralUtility::trimExplode(',', $settings['edit']['feuser'] ?? [], true);
$usergroupsSettings = GeneralUtility::trimExplode(',', $settings['edit']['fegroup'] ?? [], true);
$usersSettings = GeneralUtility::trimExplode(',', $settings['edit']['feuser'] ?? '', true);
$usergroupsSettings = GeneralUtility::trimExplode(',', $settings['edit']['fegroup'] ?? '', true);

// replace "_owner" with uid of owner in array with users
if ($mail->getFeuser() !== null && is_numeric(array_search('_owner', $usersSettings))) {
Expand Down

0 comments on commit 9deee38

Please sign in to comment.