aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-11 09:27:35 +0000
committerMario <mario@mariovavti.com>2022-02-11 09:27:35 +0000
commit7d75d0cfbdca9914814dd5c8390a45eaf377b48d (patch)
tree83213d967c19006c38685a45a9f9459f48e9a43d /vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php
parent5468de2c6ad5187cd51201cda929c3e54cc2938f (diff)
downloadvolse-hubzilla-7d75d0cfbdca9914814dd5c8390a45eaf377b48d.tar.gz
volse-hubzilla-7d75d0cfbdca9914814dd5c8390a45eaf377b48d.tar.bz2
volse-hubzilla-7d75d0cfbdca9914814dd5c8390a45eaf377b48d.zip
composer update smarty to version 4.1
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php
index a68da5409..edfe358be 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php
@@ -219,9 +219,9 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_Compile_Private_Fo
if (isset($itemAttr[ 'index' ])) {
$output .= "{$itemVar}->index = -1;\n";
}
- $output .= "{$itemVar}->do_else = true;\n";
+ $output .= "{$itemVar}->do_else = true;\n";
$output .= "if (\$_from !== null) foreach (\$_from as {$keyTerm}{$itemVar}->value) {\n";
- $output .= "{$itemVar}->do_else = false;\n";
+ $output .= "{$itemVar}->do_else = false;\n";
if (isset($attributes[ 'key' ]) && isset($itemAttr[ 'key' ])) {
$output .= "\$_smarty_tpl->tpl_vars['{$key}']->value = {$itemVar}->key;\n";
}