diff --git a/inc/template.php b/inc/template.php index 49e54f0f..0c4268d6 100644 --- a/inc/template.php +++ b/inc/template.php @@ -170,8 +170,11 @@ function Element($templateFile, array $options) { global $config, $debug; + //var_dump($options); + //exit; + // Small little hack to add the PM system - if(function_exists('create_pm_header') && (isset($options['mod']) || isset($options['__mod']))) { + if(function_exists('create_pm_header') && ((isset($options['mod']) && $options['mod']) || isset($options['__mod']))) { $options['pm'] = create_pm_header(); } @@ -192,4 +195,4 @@ } } -?> \ No newline at end of file +?>