Fix regex matching for slightly different error message for php7.1

This commit is contained in:
Simon Wisselink
2022-11-24 09:28:59 +01:00
parent 3e82c271d4
commit 9e443fdacd

View File

@@ -68,7 +68,7 @@ class Smarty_Internal_ErrorHandler
{ {
if ($this->allowUndefinedVars && preg_match( 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 $errstr
)) { )) {
return; // suppresses this error return; // suppresses this error