mirror of
https://github.com/nextcloud/server.git
synced 2026-02-10 14:25:20 -05:00
Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
174f4dd043
commit
13b37a5255
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue