From 607526774f91e68130045c588cedd144798dde9f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 15:55:39 +0100 Subject: [PATCH] fix PHP 8.0 Error: Undefined constant "self" --- importexport/inc/class.importexport_helper_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index 6f10ad79e6..b032a6c262 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -371,12 +371,12 @@ class importexport_helper_functions { $val ); } - $val = preg_replace_callback( "/($c_functions)\(([^)]*)\)/i", array( self, 'c2_dispatcher') , $val ); + $val = preg_replace_callback( "/($c_functions)\(([^)]*)\)/i", array(__CLASS__, 'c2_dispatcher') , $val ); break; } } // clean each field - $val = preg_replace_callback("/(\|T\{|\|TC\{|\|TCnCL\{|\|INE\{)(.*)\}/", array( self, 'strclean'), $val ); + $val = preg_replace_callback("/(\|T\{|\|TC\{|\|TCnCL\{|\|INE\{)(.*)\}/", array(__CLASS__, 'strclean'), $val ); $_record[$idx] = $val; }