X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.php;h=3d4a751a9d15de388de79e1464fd19cdf9790491;hb=003188abd258a3f19d3a5ab08c3a08a848b45660;hp=f5be944510c45597430754b61bca164047922336;hpb=fe9a487e1b5ed0700481aee4609055dc6c47505d;p=wfpl.git diff --git a/main.php b/main.php index f5be944..3d4a751 100644 --- a/main.php +++ b/main.php @@ -121,12 +121,12 @@ function wfpl_main($dest = false) { } # Check for $GLOBALS['wfpl_template'] because it might have been set (or unset) by the php script. - if($GLOBALS['wfpl_template'] || $GLOBALS['wfpl_main_template']) { - if($GLOBALS['wfpl_main_template']) { + if(isset($GLOBALS['wfpl_template']) || isset($GLOBALS['wfpl_main_template'])) { + if(isset($GLOBALS['wfpl_main_template'])) { # if there was a template for that page, and one for the whole # site, copy all template sections that have been show()n to the # site-wide template - if($GLOBALS['wfpl_template']) { + if(isset($GLOBALS['wfpl_template'])) { $GLOBALS['wfpl_main_template']->merge($GLOBALS['wfpl_template']); }