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;