Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Wisselink 21d15d0b79 Merge branch 'master' into patch-1 2022-11-24 18:26:00 +01:00
Rudie Dirkx e2ace32f97 Merge branch 'master' into patch-1 2022-11-24 11:33:03 +01:00
Rudie Dirkx 2235eb218f Fix error handler allowUndefinedVars 2022-02-18 23:40:18 +01:00
@@ -66,9 +66,8 @@ class Smarty_Internal_ErrorHandler
*/
public function handleError($errno, $errstr, $errfile, $errline, $errcontext = [])
{
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
)) {
return; // suppresses this error