mirror of
https://github.com/smarty-php/smarty.git
synced 2026-08-06 21:44:17 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21d15d0b79 | |||
| e2ace32f97 | |||
| 2235eb218f |
@@ -66,9 +66,8 @@ class Smarty_Internal_ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public function handleError($errno, $errstr, $errfile, $errline, $errcontext = [])
|
public function handleError($errno, $errstr, $errfile, $errline, $errcontext = [])
|
||||||
{
|
{
|
||||||
|
|
||||||
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 ".+?" on null|Trying to get property (\'.+?\' )?of non-object)/',
|
||||||
$errstr
|
$errstr
|
||||||
)) {
|
)) {
|
||||||
return; // suppresses this error
|
return; // suppresses this error
|
||||||
|
|||||||
Reference in New Issue
Block a user