diff --git a/Sources/Tasks/EventNew_Notify.php b/Sources/Tasks/EventNew_Notify.php index 932655bb86..3456d1f424 100644 --- a/Sources/Tasks/EventNew_Notify.php +++ b/Sources/Tasks/EventNew_Notify.php @@ -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.