mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-14 04:34:07 +02:00
deregister globals to install too
git-svn-id: file:///svn/phpbb/trunk@8130 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
/**
|
||||
*
|
||||
* @package install
|
||||
* @version $Id$
|
||||
* @copyright (c) 2006 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright (c) 2006 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper functions for phpBB 2.0.x to phpBB 3.0.x conversion
|
||||
*/
|
||||
@@ -524,7 +529,7 @@ function phpbb_user_id($user_id)
|
||||
|
||||
// A user id of 0 can happen, for example within the ban table if no user is banned...
|
||||
// Within the posts and topics table this can be "dangerous" but is the fault of the user
|
||||
// having mods installed (a poster id of 0 is not possible in 2.0.x).
|
||||
// having mods installed (a poster id of 0 is not possible in 2.0.x).
|
||||
// Therefore, we return the user id "as is".
|
||||
|
||||
return (int) $user_id;
|
||||
|
Reference in New Issue
Block a user