Skip to content

Commit 78a50a4

Browse files
committed
update to abuse page decoding the attachments when set
1 parent 56ca599 commit 78a50a4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/abuse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ function_requirements('abuse_admin');
7171
$db->query("select * from abuse left join abuse_data using (abuse_id) where abuse_id={$id}");
7272
if ($db->num_rows() > 0) {
7373
$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);
76+
}
7477
$ip = $db->Record['abuse_ip'];
7578
$server_data = get_server_from_ip($ip);
7679
if (($logged_in && $GLOBALS['tf']->accounts->data['account_lid'] == $server_data['email']) || ($logged_in && $GLOBALS['tf']->accounts->data['account_lid'] == $db->Record['abuse_lid']) || ($logged_in == false) || ($GLOBALS['tf']->ima == 'admin')) {

0 commit comments

Comments
 (0)