Skip to content
Snippets Groups Projects
Commit ab595274 authored by Joas Schilling's avatar Joas Schilling Committed by backportbot[bot]
Browse files

Do not allow to overwrite some variables

parent 6a8d6beb
Branches tedomum-prod
No related tags found
No related merge requests found
......@@ -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;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment