diff options
author | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
commit | eab8a101e7a3fcbb41e01a574985e06c5a3775de (patch) | |
tree | 60f201da5984b0c3638d10da02bba42b61aa3177 /lib/smarty3/sysplugins/smarty_undefined_variable.php | |
parent | 7f38be342c1495aeca418286c15c25c18ac9e142 (diff) |
Updating Smarty
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_undefined_variable.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_undefined_variable.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/smarty3/sysplugins/smarty_undefined_variable.php b/lib/smarty3/sysplugins/smarty_undefined_variable.php index 88bc6f6..6d31a8a 100644 --- a/lib/smarty3/sysplugins/smarty_undefined_variable.php +++ b/lib/smarty3/sysplugins/smarty_undefined_variable.php @@ -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 ''; } } |