Skip to content

Commit

Permalink
Resolve notice: "Indirect modification [...] has no effect"
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ober committed Nov 3, 2023
1 parent c352e15 commit 96e8d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/notification_event_listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 96e8d3e

Please sign in to comment.