Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
167a4c7a0a
commit
aa178f9e25
|
@ -168,9 +168,11 @@ class Base {
|
||||||
if (!is_null($additionalParams)) {
|
if (!is_null($additionalParams)) {
|
||||||
$_ = array_merge($additionalParams, $this->vars);
|
$_ = array_merge($additionalParams, $this->vars);
|
||||||
foreach ($_ as $var => $value) {
|
foreach ($_ as $var => $value) {
|
||||||
|
if (!isset(${$var})) {
|
||||||
${$var} = $value;
|
${$var} = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Include
|
// Include
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
Loading…
Reference in New Issue