From 270143694ec8e8a35f470330fca04a08a52e0054 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 15 Jun 2020 20:46:19 +0200 Subject: [PATCH] Bug : compatibility PHP7.4 --- include/tfpdf/tfpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tfpdf/tfpdf.php b/include/tfpdf/tfpdf.php index f9fb17971..6000a9fb2 100644 --- a/include/tfpdf/tfpdf.php +++ b/include/tfpdf/tfpdf.php @@ -1257,7 +1257,7 @@ function _dochecks() if(ini_get('mbstring.func_overload') & 2) $this->Error('mbstring overloading must be disabled'); // Ensure runtime magic quotes are disabled - if(get_magic_quotes_runtime()) + if(version_compare(PHP_VERSION, '7.3.0','<') && get_magic_quotes_runtime()) @set_magic_quotes_runtime(0); }