mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- fixed a referencing problem with objects (PHP4/5 conflict)
- user_group_auth can take data from both target and source database git-svn-id: file:///svn/phpbb/trunk@7002 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1066,7 +1066,7 @@ function add_user_group($group_id, $user_id, $group_leader=false)
|
||||
* @param string $group The name of the special group to add to
|
||||
* @param string $select_query An SQL query to retrieve the user(s) to add to the group
|
||||
*/
|
||||
function user_group_auth($group, $select_query)
|
||||
function user_group_auth($group, $select_query, $use_src_db)
|
||||
{
|
||||
global $convert, $phpbb_root_path, $config, $user, $db, $src_db, $same_db;
|
||||
|
||||
@@ -1089,7 +1089,7 @@ function user_group_auth($group, $select_query)
|
||||
return;
|
||||
}
|
||||
|
||||
if ($same_db)
|
||||
if ($same_db || !$use_src_db)
|
||||
{
|
||||
$sql = 'INSERT INTO ' . USER_GROUP_TABLE . ' (user_id, group_id, user_pending)
|
||||
' . str_replace('{' . strtoupper($group) . '}', $group_id . ', 0', $select_query);
|
||||
|
Reference in New Issue
Block a user