mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-19 00:49:30 +01:00
Also mute php7 notices for undefined array indexes when muteUndefinedOrNullWarnings is activated. (#829)
Fixes #736
This commit is contained in:
@@ -71,7 +71,7 @@ class Smarty_Internal_ErrorHandler
|
||||
}
|
||||
|
||||
if ($this->allowUndefinedArrayKeys && preg_match(
|
||||
'/^(Undefined array key|Trying to access array offset on value of type null)/',
|
||||
'/^(Undefined index|Undefined array key|Trying to access array offset on value of type null)/',
|
||||
$errstr
|
||||
)) {
|
||||
return; // suppresses this error
|
||||
|
||||
Reference in New Issue
Block a user