Zeile 122 | Zeile 122 |
---|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
if(!$request['rid'])
| if(!$request)
|
{ flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 153 | Zeile 153 |
---|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
if(!$request['rid'])
| if(!$request)
|
{ flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 181 | Zeile 181 |
---|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
if(!$group['gid'] || $group['type'] != 4)
| if(!$group || $group['type'] != 4)
|
{ flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 316 | Zeile 316 |
---|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-group");
| { flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-group");
|
Zeile 325 | Zeile 325 |
---|
$plugins->run_hooks("admin_user_groups_add_leader");
$user = get_user_by_username($mybb->input['username'], array('fields' => 'username'));
|
$plugins->run_hooks("admin_user_groups_add_leader");
$user = get_user_by_username($mybb->input['username'], array('fields' => 'username'));
|
if(empty($user['uid']))
| if(!$user)
|
{ $errors[] = $lang->error_invalid_username; }
| { $errors[] = $lang->error_invalid_username; }
|
Zeile 383 | Zeile 383 |
---|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $group = $db->fetch_array($query);
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 543 | Zeile 543 |
---|
WHERE l.lid='".$mybb->get_input('lid', MyBB::INPUT_INT)."'"); $leader = $db->fetch_array($query);
|
WHERE l.lid='".$mybb->get_input('lid', MyBB::INPUT_INT)."'"); $leader = $db->fetch_array($query);
|
if(!$leader['lid'])
| if(!$leader)
|
{ flash_message($lang->error_invalid_group_leader, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_group_leader, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 593 | Zeile 593 |
---|
"); $leader = $db->fetch_array($query);
|
"); $leader = $db->fetch_array($query);
|
if(!$leader['lid'])
| if(!$leader)
|
{ flash_message($lang->error_invalid_group_leader, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_group_leader, 'error'); admin_redirect("index.php?module=user-groups");
|
Zeile 801 | Zeile 801 |
---|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $usergroup = $db->fetch_array($query);
|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $usergroup = $db->fetch_array($query);
|
if(!$usergroup['gid'])
| if(!$usergroup)
|
{ flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-group");
| { flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-group");
|
Zeile 1286 | Zeile 1286 |
---|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $usergroup = $db->fetch_array($query);
|
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'"); $usergroup = $db->fetch_array($query);
|
if(!$usergroup['gid'])
| if(!$usergroup)
|
{ flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
| { flash_message($lang->error_invalid_user_group, 'error'); admin_redirect("index.php?module=user-groups");
|