Skip to content

Commit 5b43dec

Browse files
committed
remove redundant code
1 parent ce4e5e9 commit 5b43dec

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

administrator/components/com_joomlaupdate/src/Model/NotificationModel.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,9 @@ public function sendNotification($type, $oldVersion, $newVersion): void
5252
// Superusergroups as fallback
5353
$superUserGroups = $this->getSuperUserGroups();
5454

55-
if (!\is_array($superUserGroups)) {
56-
$emailGroups = ArrayHelper::toInteger(explode(',', $superUserGroups));
57-
}
58-
5955
// User groups from input field
6056
$emailGroups = $params->get('automated_updates_email_groups', $superUserGroups, 'array');
6157

62-
if (!\is_array($emailGroups)) {
63-
$emailGroups = ArrayHelper::toInteger(explode(',', $emailGroups));
64-
}
65-
6658
// Get all users in these groups who can receive emails
6759
$emailReceivers = $this->getEmailReceivers($emailGroups);
6860

0 commit comments

Comments
 (0)