Do not allow to overwrite some variables

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/26718/head
Joas Schilling 5 years ago
parent 174f4dd043
commit 13b37a5255
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 4
      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;
}
}
}

Loading…
Cancel
Save