@@ -118,11 +118,11 @@ public function getReceiverName(): string
118
118
protected function setReceiverEmails (): void
119
119
{
120
120
$ emailArray = $ this ->getEmailsFromFlexForm ();
121
- $ emailArray = $ this ->getEmailsFromFeGroup ($ emailArray , (int )$ this ->settings ['receiver ' ]['fe_group ' ]);
122
- $ emailArray = $ this ->getEmailsFromBeGroup ($ emailArray , (int )$ this ->settings ['receiver ' ]['be_group ' ]);
121
+ $ emailArray = $ this ->getEmailsFromFeGroup ($ emailArray , (int )( $ this ->settings ['receiver ' ]['fe_group ' ] ?? 0 ) );
122
+ $ emailArray = $ this ->getEmailsFromBeGroup ($ emailArray , (int )( $ this ->settings ['receiver ' ]['be_group ' ] ?? 0 ) );
123
123
$ emailArray = $ this ->getEmailsFromPredefinedEmail (
124
124
$ emailArray ,
125
- (string )$ this ->settings ['receiver ' ]['predefinedemail ' ]
125
+ (string )( $ this ->settings ['receiver ' ]['predefinedemail ' ] ?? '' )
126
126
);
127
127
$ emailArray = $ this ->overWriteEmailsWithTypoScript ($ emailArray );
128
128
$ emailArray = $ this ->getEmailFromDevelopmentContext ($ emailArray );
@@ -140,7 +140,7 @@ protected function setReceiverEmails(): void
140
140
*/
141
141
protected function getEmailsFromFlexForm (): array
142
142
{
143
- if ((int )$ this ->settings ['receiver ' ]['type ' ] === self ::RECEIVERS_DEFAULT ) {
143
+ if ((int )( $ this ->settings ['receiver ' ]['type ' ] ?? 0 ) === self ::RECEIVERS_DEFAULT ) {
144
144
$ mailRepository = ObjectUtility::getObjectManager ()->get (MailRepository::class);
145
145
$ emailString = TemplateUtility::fluidParseString (
146
146
$ this ->settings ['receiver ' ]['email ' ],
@@ -161,7 +161,7 @@ protected function getEmailsFromFlexForm(): array
161
161
*/
162
162
protected function getEmailsFromFeGroup (array $ emailArray , int $ uid ): array
163
163
{
164
- if ((int )$ this ->settings ['receiver ' ]['type ' ] === self ::RECEIVERS_FRONTENDGROUP && !empty ($ uid )) {
164
+ if ((int )( $ this ->settings ['receiver ' ]['type ' ] ?? 0 ) === self ::RECEIVERS_FRONTENDGROUP && !empty ($ uid )) {
165
165
$ userRepository = ObjectUtility::getObjectManager ()->get (UserRepository::class);
166
166
$ users = $ userRepository ->findByUsergroup ($ uid );
167
167
$ emailArray = [];
@@ -186,7 +186,7 @@ protected function getEmailsFromFeGroup(array $emailArray, int $uid): array
186
186
*/
187
187
protected function getEmailsFromBeGroup (array $ emailArray , int $ uid ): array
188
188
{
189
- if ((int )$ this ->settings ['receiver ' ]['type ' ] === self ::RECEIVERS_BACKENDGROUP && !empty ($ uid )) {
189
+ if ((int )( $ this ->settings ['receiver ' ]['type ' ] ?? 0 ) === self ::RECEIVERS_BACKENDGROUP && !empty ($ uid )) {
190
190
/** @var BackendUserRepository $beUserRepository */
191
191
$ beUserRepository = ObjectUtility::getObjectManager ()->get (BackendUserRepository::class);
192
192
$ query = $ beUserRepository ->createQuery ();
@@ -217,7 +217,7 @@ protected function getEmailsFromBeGroup(array $emailArray, int $uid): array
217
217
*/
218
218
protected function getEmailsFromPredefinedEmail (array $ emailArray , string $ predefinedString ): array
219
219
{
220
- if ((int )$ this ->settings ['receiver ' ]['type ' ] === self ::RECEIVERS_PREDEFINED && !empty ($ predefinedString )) {
220
+ if ((int )( $ this ->settings ['receiver ' ]['type ' ] ?? 0 ) === self ::RECEIVERS_PREDEFINED && !empty ($ predefinedString )) {
221
221
$ receiverString = TypoScriptUtility::overwriteValueFromTypoScript (
222
222
'' ,
223
223
$ this ->configuration ['receiver. ' ]['predefinedReceiver. ' ][$ predefinedString . '. ' ],
0 commit comments