From 13d4bbcc5a6ed3dc2718ca01e4800cf553822121 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 2 Dec 2023 18:44:47 -0500 Subject: [PATCH] Comparing arrays and ints doesn't work --- Sources/Tasks/EventNew_Notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.