aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-02-26 19:53:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-02-26 19:53:10 +0000
commit541667f440b245535354febd18930a87c2bbbefb (patch)
tree154386a019e66e8fd89b5ac0dd218fa11e7e3d88 /phpBB/includes/functions.php
parentc3200c107f1e5b297d3c351e7ce0b8aee61a7dc7 (diff)
downloadforums-541667f440b245535354febd18930a87c2bbbefb.tar
forums-541667f440b245535354febd18930a87c2bbbefb.tar.gz
forums-541667f440b245535354febd18930a87c2bbbefb.tar.bz2
forums-541667f440b245535354febd18930a87c2bbbefb.tar.xz
forums-541667f440b245535354febd18930a87c2bbbefb.zip
some changes... mainly permission related. Please note the intval($forum_id) at viewtopic, somehow the auth class did not identified it while generating the forum rules.
git-svn-id: file:///svn/phpbb/trunk@3553 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 5db02b774a..3f01b8a024 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -195,7 +195,7 @@ function gen_forum_rules($mode, &$forum_id)
foreach ($rules as $rule)
{
$template->assign_block_vars('rules', array(
- 'RULE' => ($auth->acl_gets('f_' . $rule, 'm_', 'a_', $forum_id)) ? $user->lang['RULES_' . strtoupper($rule) . '_CAN'] : $user->lang['RULES_' . strtoupper($rule) . '_CANNOT'])
+ 'RULE' => ($auth->acl_gets('f_' . $rule, 'm_', 'a_', intval($forum_id))) ? $user->lang['RULES_' . strtoupper($rule) . '_CAN'] : $user->lang['RULES_' . strtoupper($rule) . '_CANNOT'])
);
}