mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user