mirror of
https://github.com/smarty-php/smarty.git
synced 2025-09-25 20:00:54 +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(
|
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
|
||||||
|
Reference in New Issue
Block a user