diff --git a/event/notification_event_listener.php b/event/notification_event_listener.php index 4525e76..14e3462 100644 --- a/event/notification_event_listener.php +++ b/event/notification_event_listener.php @@ -351,7 +351,7 @@ public function handle_lock_action($event) } // Get the ID needed to access $event['data'], then extract all relevant data from the event that we need to generate the notification - $id = array_pop($event['ids']); + $id = array_slice($event['ids'], -1)[0]; $lock_data = array(); $lock_data['forum_id'] = $event['data'][$id]['forum_id'];