mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fb225b562f
The post-delete admin-log block referenced variables that were never defined ($admid/$adminID/$medalid/$uid), so on PHP 8.1+ (mysqli throws on error) the malformed INSERT raised an uncaught mysqli_sql_exception → HTTP 500 after the medal was already deleted. Use the correct ids ($admid from session, $uid from POST), look up the target player's username (escaped), and redirect to the sanitized $uid. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>