We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f99fd82 commit 0a9a44aCopy full SHA for 0a9a44a
1 file changed
src/abuse.php
@@ -72,7 +72,8 @@ function_requirements('abuse_admin');
72
if ($db->num_rows() > 0) {
73
$db->next_record(MYSQL_ASSOC);
74
if (!is_null($db->Record['abuse_attachments'])) {
75
- $db->Record['abuse_attachments'] = json_decode($db->Record['abuse_attachments'], true);
+ $decoded = json_decode($db->Record['abuse_attachments'], true);
76
+ $db->Record['abuse_attachments'] = is_array($decoded) ? array_values(array_filter($decoded, 'is_array')) : null;
77
}
78
$ip = $db->Record['abuse_ip'];
79
$server_data = get_server_from_ip($ip);
0 commit comments