smarty 3.1.39 upgrade

This commit is contained in:
Matthieu Leproux
2021-08-04 12:07:12 +02:00
committed by plegall
parent 2f5a0b7355
commit e537eac9dd
241 changed files with 15897 additions and 11403 deletions
@@ -7,22 +7,18 @@
* @package Smarty
* @subpackage Template
*/
class Smarty_Undefined_Variable
class Smarty_Undefined_Variable extends Smarty_Variable
{
/**
* Returns FALSE for 'nocache' and NULL otherwise.
* Returns null for not existing properties
*
* @param string $name
* @param string $name
*
* @return bool
* @return null
*/
public function __get($name)
{
if ($name == 'nocache') {
return false;
} else {
return null;
}
return null;
}
/**
@@ -32,6 +28,6 @@ class Smarty_Undefined_Variable
*/
public function __toString()
{
return "";
return '';
}
}