[FIX] Ensure PHP error warning box does not show when generating PDFs
- [FIX] Ensure PHP error warning box does not show when generating PDFs
Ref: https://avan.tech/item47501
(cherry picked from commit 1b5c6098)
Co-authored-by: Micael Farinha micaes_3323@hotmail.com