Skip to content

Commit 0a9a44a

Browse files
committed
update
1 parent f99fd82 commit 0a9a44a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/abuse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function_requirements('abuse_admin');
7272
if ($db->num_rows() > 0) {
7373
$db->next_record(MYSQL_ASSOC);
7474
if (!is_null($db->Record['abuse_attachments'])) {
75-
$db->Record['abuse_attachments'] = json_decode($db->Record['abuse_attachments'], true);
75+
$decoded = json_decode($db->Record['abuse_attachments'], true);
76+
$db->Record['abuse_attachments'] = is_array($decoded) ? array_values(array_filter($decoded, 'is_array')) : null;
7677
}
7778
$ip = $db->Record['abuse_ip'];
7879
$server_data = get_server_from_ip($ip);

0 commit comments

Comments
 (0)