- Adding a explicit cast to a call of array_key_exists in the "custom fields" form, since PHP8 breaks the execution of the script because issues a fatal error when the implicit cast resolves to null, instead of issuing a warning like previous versions.
- Fixed a variable that was being referenced by the wrong name in mon_stats.php. This also breaks the execution in PHP8.