|
@@ -215,8 +215,8 @@ class PhpTemplate
|
|
|
// $variable
|
|
// $variable
|
|
|
$replaced = ${$var};
|
|
$replaced = ${$var};
|
|
|
$content = str_replace($reg[0], $replaced, $content);
|
|
$content = str_replace($reg[0], $replaced, $content);
|
|
|
- } else {
|
|
|
|
|
|
|
|
|
|
|
|
+ } else {
|
|
|
// if variable not exists, replace with empty string
|
|
// if variable not exists, replace with empty string
|
|
|
$content = str_replace($reg[0], '', $content);
|
|
$content = str_replace($reg[0], '', $content);
|
|
|
}
|
|
}
|