Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PHP warning when updating issue with date CF
On PHP 8, when updating an issue in a project where a date custom field is linked, and the field's value is not set (empty string), Mantis throws a Warning: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given This fixes the issue by setting the date to 0 if it is not numeric, prior to calling print_date_selection_set(). Fixes #27928 (cherry picked from commit c09fb41)
- Loading branch information