1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-10 16:35:35 +02:00

Fix couple of errors ... you should run UPDATE phpbb_users SET user_permissions = '' after this update

git-svn-id: file:///svn/phpbb/trunk@3026 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-11-13 21:33:13 +00:00
parent 5a7e3a3bb3
commit 2fe1f1bc65
2 changed files with 4 additions and 4 deletions

@ -53,7 +53,7 @@ function display_forums($root_data=array(), $display_moderators=TRUE)
continue;
}
if (!$auth->acl_gets('f_list', 'm_', 'a_', $row['forum_id']))
if (!$auth->acl_gets('f_list', 'm_', 'a_', intval($row['forum_id'])))
{
// if the user does not have permissions to list this forum, skip everything until next branch

@ -539,7 +539,7 @@ class auth
if (!is_int($forum_id))
{
$arguments[] = $forum_id;
$forum_id = false;
$forum_id = 0;
}
$acl = 0;
@ -651,9 +651,9 @@ class auth
if ($global_hold == '')
{
for($i = 0; $i < $global_bits; $i++)
for($i = 0; $i < $global_bits / 8; $i++)
{
$global_hold .= '0';
$global_hold .= chr(0);
}
}