forked from leftypol/leftypol
fixed but telling non-mods they have an unread PM sometimes
This commit is contained in:
parent
cab73c934a
commit
01a5846557
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue