File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ function_requirements('abuse_admin');
9696 $ db ->query ("update abuse_data set abuse_response=' " . $ db ->real_escape ($ GLOBALS ['tf ' ]->variables ->request ['response ' ]) . "' where abuse_id= {$ id }" , __LINE__ , __FILE__ );
9797 $ db ->query ("select * from abuse left join abuse_data using (abuse_id) where abuse_id= {$ id }" );
9898 $ db ->next_record (MYSQL_ASSOC );
99+ if (!is_null ($ db ->Record ['abuse_attachments ' ])) {
100+ $ decoded = json_decode ($ db ->Record ['abuse_attachments ' ], true );
101+ $ db ->Record ['abuse_attachments ' ] = is_array ($ decoded ) ? array_values (array_filter ($ decoded , 'is_array ' )) : null ;
102+ }
99103 add_output ('Abuse Entry Updated <a href=" ' .$ GLOBALS ['tf ' ]->link ('index.php ' , 'choice=none.abuse ' ).'">View Pending Abuse Complaints</a> ' );
100104 }
101105 $ smarty ->assign ($ db ->Record );
You can’t perform that action at this time.
0 commit comments