From 9c8f4e90604a6c96e1f4c5651ebec81bd801151d Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 17 Mar 2023 21:07:35 +0000 Subject: [PATCH] Event Guard - Fix Unblock multiple checked. --- app/event_guard/resources/service/event_guard.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/event_guard/resources/service/event_guard.php b/app/event_guard/resources/service/event_guard.php index 6385f6cbb2..ea2bb67994 100644 --- a/app/event_guard/resources/service/event_guard.php +++ b/app/event_guard/resources/service/event_guard.php @@ -211,9 +211,10 @@ } //log the blocked ip address to the database - $array['event_guard_logs'][0]['event_guard_log_uuid'] = $row['event_guard_log_uuid']; - $array['event_guard_logs'][0]['log_date'] = 'now()'; - $array['event_guard_logs'][0]['log_status'] = 'unblocked'; + $array['event_guard_logs'][$x]['event_guard_log_uuid'] = $row['event_guard_log_uuid']; + $array['event_guard_logs'][$x]['log_date'] = 'now()'; + $array['event_guard_logs'][$x]['log_status'] = 'unblocked'; + $x++; } if (is_array($array)) { $p = new permissions;