aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/Base.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-04-27 15:18:02 +0200
committerGitHub <noreply@github.com>2021-04-27 15:18:02 +0200
commit48c50277a92b3b37fb4a9a9e7e20a487649b99db (patch)
treeb8d730a31bec718a918d4a57b6685b5c42dd0f94 /lib/private/Template/Base.php
parentc52a026f55c70bee22036d28dda01eae087e0c7a (diff)
parent13b37a5255cd0586c32b66cfda01b6014f09dcba (diff)
downloadnextcloud-server-48c50277a92b3b37fb4a9a9e7e20a487649b99db.tar.gz
nextcloud-server-48c50277a92b3b37fb4a9a9e7e20a487649b99db.zip
Merge pull request #26718 from nextcloud/bugfix/noid/fix-ratelimit-template
Fix ratelimit template
Diffstat (limited to 'lib/private/Template/Base.php')
-rw-r--r--lib/private/Template/Base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php
index c95958ceea1..65d0ad469ff 100644
--- a/lib/private/Template/Base.php
+++ b/lib/private/Template/Base.php
@@ -168,7 +168,9 @@ class Base {
if (!is_null($additionalParams)) {
$_ = array_merge($additionalParams, $this->vars);
foreach ($_ as $var => $value) {
- ${$var} = $value;
+ if (!isset(${$var})) {
+ ${$var} = $value;
+ }
}
}