Vergleich managegroup.php - 1.8.29 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 40Zeile 40
$query = $db->simple_select("groupleaders", "*", "uid='{$mybb->user['uid']}' AND gid='{$gid}'");
$groupleader = $db->fetch_array($query);


$query = $db->simple_select("groupleaders", "*", "uid='{$mybb->user['uid']}' AND gid='{$gid}'");
$groupleader = $db->fetch_array($query);


if(!$groupleader['uid'] && $mybb->usergroup['cancp'] != 1)

if(!$groupleader && $mybb->usergroup['cancp'] != 1)

{
error($lang->not_leader_of_this_group);
}

{
error($lang->not_leader_of_this_group);
}

Zeile 63Zeile 63

$user = get_user_by_username($mybb->get_input('username'), $options);



$user = get_user_by_username($mybb->get_input('username'), $options);


	if($user['uid'])

	if($user)

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))

Zeile 101Zeile 101

$user = get_user_by_username($mybb->get_input('inviteusername'), $options);



$user = get_user_by_username($mybb->get_input('inviteusername'), $options);


	if($user['uid'])

	if($user)

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))
{
$query = $db->simple_select("joinrequests", "rid", "uid = '".(int)$user['uid']."' AND gid = '".(int)$gid."'", array("limit" => 1));
$pendinginvite = $db->fetch_array($query);

	{
$additionalgroups = explode(',', $user['additionalgroups']);
if($user['usergroup'] != $gid && !in_array($gid, $additionalgroups))
{
$query = $db->simple_select("joinrequests", "rid", "uid = '".(int)$user['uid']."' AND gid = '".(int)$gid."'", array("limit" => 1));
$pendinginvite = $db->fetch_array($query);

			if($pendinginvite['rid'])

			if($pendinginvite)

			{
error($lang->error_alreadyinvited);
}

			{
error($lang->error_alreadyinvited);
}