mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 11:44:16 +02:00
code cleanup and optimizations 3.1.32-dev-34
This commit is contained in:
@@ -30,7 +30,7 @@ class Smarty_Internal_Method_AssignGlobal
|
||||
*/
|
||||
public function assignGlobal(Smarty_Internal_Data $data, $varName, $value = null, $nocache = false)
|
||||
{
|
||||
if ($varName != '') {
|
||||
if ($varName !== '') {
|
||||
Smarty::$global_tpl_vars[ $varName ] = new Smarty_Variable($value, $nocache);
|
||||
$ptr = $data;
|
||||
while ($ptr->_isTplObj()) {
|
||||
|
||||
Reference in New Issue
Block a user