mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 19:23:01 +02:00
smarty 3.1.39 upgrade
This commit is contained in:
committed by
plegall
parent
2f5a0b7355
commit
e537eac9dd
@@ -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 '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user