1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Disable PM icon if PM not installed

This commit is contained in:
e107steved
2007-05-11 19:57:45 +00:00
parent cebc56900b
commit ad4c67a8b2
2 changed files with 11 additions and 7 deletions

View File

@@ -30,8 +30,9 @@ return $ret;
SC_END
SC_BEGIN PRIVMESSAGE
global $post_info, $tp;
if($post_info['user_id'] > 0){
global $pref, $post_info, $tp;
if(isset($pref['plug_installed']['pm']) && ($post_info['user_id'] > 0))
{
return $tp->parseTemplate("{SENDPM={$post_info['user_id']}}");
}
SC_END