summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Wisselink <wisskid@users.noreply.github.com>2024-03-28 11:22:29 +0100
committerGitHub <noreply@github.com>2024-03-28 11:22:29 +0100
commit6f054ecc2ffea472b438691f42afcad598b98d61 (patch)
tree44e5e8d839219dd0e926e9d55c02695102da85a5 /src
parent4fec27ccc274ff615df13612637160264b343bd9 (diff)
downloadsmarty-6f054ecc2ffea472b438691f42afcad598b98d61.tar.gz
smarty-6f054ecc2ffea472b438691f42afcad598b98d61.tar.bz2
smarty-6f054ecc2ffea472b438691f42afcad598b98d61.zip
Fix Smarty::assign() not returning when called with an array as first parameter. (#973)
Fixes #972
Diffstat (limited to 'src')
-rw-r--r--src/Data.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data.php b/src/Data.php
index 3176c7f0..582ee660 100644
--- a/src/Data.php
+++ b/src/Data.php
@@ -109,7 +109,7 @@ class Data
foreach ($tpl_var as $_key => $_val) {
$this->assign($_key, $_val, $nocache, $scope);
}
- return;
+ return $this;
}
switch ($scope ?? $this->getDefaultScope()) {
case self::SCOPE_GLOBAL: