From 9e443fdacd0a261f6773bf5f8c70dd99a550adf5 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Thu, 24 Nov 2022 09:28:59 +0100 Subject: [PATCH] Fix regex matching for slightly different error message for php7.1 --- libs/sysplugins/smarty_internal_errorhandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_errorhandler.php b/libs/sysplugins/smarty_internal_errorhandler.php index 15f26501..cb19070d 100644 --- a/libs/sysplugins/smarty_internal_errorhandler.php +++ b/libs/sysplugins/smarty_internal_errorhandler.php @@ -68,7 +68,7 @@ class Smarty_Internal_ErrorHandler { if ($this->allowUndefinedVars && preg_match( - '/^(Attempt to read property "value" on null|Trying to get property \'value\' of non-object)/', + '/^(Attempt to read property "value" on null|Trying to get property (\'value\' )?of non-object)/', $errstr )) { return; // suppresses this error