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:
phpBB/includes
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user