summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Wisselink <wisskid@users.noreply.github.com>2024-03-28 11:22:29 +0100
committerSimon Wisselink <s.wisselink@iwink.nl>2024-04-05 22:38:57 +0200
commit599bcee13ea7b305876191241be920a1c0fcf9b5 (patch)
tree5a8af17080369d0d16fe189b6124b8e11961bd1b /src
parent569cef71d0fc45aeed260170c4ad66626d791161 (diff)
downloadsmarty-599bcee13ea7b305876191241be920a1c0fcf9b5.tar.gz
smarty-599bcee13ea7b305876191241be920a1c0fcf9b5.tar.bz2
smarty-599bcee13ea7b305876191241be920a1c0fcf9b5.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: