aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-02-24 12:31:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-02-24 12:31:21 +0000
commit2e941d3d38530fbc1979a6eb72b3b43adee64d14 (patch)
tree3b7bca4bd34724d151089d60a3874766b088c18c /phpBB/includes/functions.php
parent74ad87df5c696b62e73bc1b5b7c5fceea75932d7 (diff)
downloadforums-2e941d3d38530fbc1979a6eb72b3b43adee64d14.tar
forums-2e941d3d38530fbc1979a6eb72b3b43adee64d14.tar.gz
forums-2e941d3d38530fbc1979a6eb72b3b43adee64d14.tar.bz2
forums-2e941d3d38530fbc1979a6eb72b3b43adee64d14.tar.xz
forums-2e941d3d38530fbc1979a6eb72b3b43adee64d14.zip
trying to fix some bugs...
git-svn-id: file:///svn/phpbb/trunk@7054 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 3cc0d23063..e360ffb3a0 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3700,7 +3700,7 @@ function page_header($page_title = '', $display_online_list = true)
'S_TIMEZONE' => ($user->data['user_dst'] || ($user->data['user_id'] == ANONYMOUS && $config['board_dst'])) ? sprintf($user->lang['ALL_TIMES'], $user->lang['tz'][$tz], $user->lang['tz']['dst']) : sprintf($user->lang['ALL_TIMES'], $user->lang['tz'][$tz], ''),
'S_DISPLAY_ONLINE_LIST' => ($l_online_time) ? 1 : 0,
'S_DISPLAY_SEARCH' => (!$config['load_search']) ? 0 : (isset($auth) ? ($auth->acl_get('u_search') && $auth->acl_getf_global('f_search')) : 1),
- 'S_DISPLAY_PM' => ($config['allow_privmsg'] && $user->data['is_registered']) ? 1 : 0,
+ 'S_DISPLAY_PM' => ($config['allow_privmsg'] && $user->data['is_registered'] && ($auth->acl_get('u_readpm') || $auth->acl_get('u_sendpm'))) ? true : false,
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
'S_NEW_PM' => ($s_privmsg_new) ? 1 : 0,