When I add someone to a group on the forums, I get a blank page. I search the code within the functions_user.php and found this code,
Code: › // Insert the new users
if (sizeof($add_id_ary))
{
$sql_ary = array();
foreach ($add_id_ary as $user_id)
{
$sql_ary[] = array(
'user_id' => (int) $user_id,
'group_id' => (int) $group_id,
'group_leader' => (int) $leader,
'user_pending' => (int) $pending,
);
}
$db->sql_multi_insert(USER_GROUP_TABLE, $sql_ary);
// Add users to group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->addUserToGroup($add_id_ary, $group_id);
}
if (sizeof($update_id_ary))
{
$sql = 'UPDATE ' . USER_GROUP_TABLE . '
SET group_leader = 1
WHERE ' . $db->sql_in_set('user_id', $update_id_ary) . "
AND group_id = $group_id";
$db->sql_query($sql);
}
When I remove the added code,
Code: › // Add users to group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->addUserToGroup($add_id_ary, $group_id);
It works just fine, no problems, but then again the integration does not work. I'm having this problem with removing a member too. And suggestions?