JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
silence some notices
[wfpl.git] / template.php
index c1df1c1..1f2592a 100644 (file)
@@ -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();
        }
 }