Skip to content

Commit

Permalink
Merge pull request #7928 from Oldiesmann/fixeventnotify
Browse files Browse the repository at this point in the history
Comparing arrays and ints doesn't work
  • Loading branch information
Sesquipedalian authored Dec 4, 2023
2 parents 0a2258d + 13d4bbc commit 770e32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Tasks/EventNew_Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function execute()

// Don't alert the event creator
if (!empty($this->_details['sender_id'])) {
$members = array_diff($members, $this->_details['sender_id']);
$members = array_diff($members, [$this->_details['sender_id']]);
}

// Having successfully figured this out, now let's get the preferences of everyone.
Expand Down

0 comments on commit 770e32b

Please sign in to comment.