diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-23 10:54:45 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-27 13:55:35 +0200 |
commit | 13b37a5255cd0586c32b66cfda01b6014f09dcba (patch) | |
tree | acb5ab8cae39d050b43464b3425c404481e4fd67 /lib/private/Template | |
parent | 174f4dd0438ea59e311f5201f59ece3301976df9 (diff) | |
download | nextcloud-server-13b37a5255cd0586c32b66cfda01b6014f09dcba.tar.gz nextcloud-server-13b37a5255cd0586c32b66cfda01b6014f09dcba.zip |
Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Template')
-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; + } } } |