mirror of
https://github.com/smarty-php/smarty.git
synced 2025-09-25 11:50:55 +02:00
Fix regex matching for slightly different error message for php7.1
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user