X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=1667cdead3e1c59287a0f422311b3c5b748e406e;hb=dfd0f158f89020b3142e41127d21e48c8512aa1e;hp=4480391cb01a3ae81594f24b191b0d5b153ecd21;hpb=b4bc48b5a6e331e1984922057b46915875099c15;p=wfpl.git diff --git a/template.php b/template.php index 4480391..1667cde 100644 --- a/template.php +++ b/template.php @@ -349,6 +349,7 @@ function &tem_is_old_sub($name, &$template) { if($tem) return $tem; } } + return false; } class tem { @@ -382,7 +383,9 @@ class tem { function show($name) { $tem = tem_is_old_sub($name, $this->template); - $this->data[$name] .= fill_template($tem, $this->data); + if($tem) { + $this->data[$name] .= fill_template($tem, $this->data); + } } function show_separated($name) {