X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=1f2592a63d77ba65e30fda479bcea5286c8a428a;hb=c4d4f8a2a73949f8d4d2b81961cf95a5a4c4bc74;hp=32c3783aef6c5b1077ddb789654066bd1298d4ed;hpb=900e09b8300463e3dd42e89c21de181520513e95;p=wfpl.git diff --git a/template.php b/template.php index 32c3783..1f2592a 100644 --- a/template.php +++ b/template.php @@ -424,7 +424,8 @@ function &tem_is_old_sub($name, &$template) { if($tem) return $tem; } } - return false; + $false = false; + return $false; } class tem { @@ -546,7 +547,7 @@ class tem { } function tem_init() { - if(!$GLOBALS['wfpl_template']) { + if(!isset($GLOBALS['wfpl_template']) || !$GLOBALS['wfpl_template']) { $GLOBALS['wfpl_template'] = new tem(); } } @@ -632,5 +633,3 @@ function tem_load_new($filename) { function tem_sub($name) { tem_show($name); } - -?>