summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-25 16:03:57 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-25 16:03:57 +1000
commit01a58465578e6efac211bd626bf686502da56ee1 (patch)
treec8293b459c5a670726c20e3f619de88b0a4b02af /inc/template.php
parentcab73c934a016ca10ed381823f91595b8e88416a (diff)
fixed but telling non-mods they have an unread PM sometimes
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php7
1 files changed, 5 insertions, 2 deletions
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
+?>