Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2b0fd23ecf
commit
498ac1c6f5
|
@ -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 New Issue