diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-04-27 15:18:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 15:18:02 +0200 |
commit | 48c50277a92b3b37fb4a9a9e7e20a487649b99db (patch) | |
tree | b8d730a31bec718a918d4a57b6685b5c42dd0f94 /lib/private/Template/Base.php | |
parent | c52a026f55c70bee22036d28dda01eae087e0c7a (diff) | |
parent | 13b37a5255cd0586c32b66cfda01b6014f09dcba (diff) | |
download | nextcloud-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.php | 4 |
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; + } } } |