mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 09:44:28 +01:00
fixed but telling non-mods they have an unread PM sometimes
This commit is contained in:
parent
bb635acb38
commit
87d9aef299
@ -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…
Reference in New Issue
Block a user