Zeile 108 | Zeile 108 |
---|
{ $user = get_user_by_username($mybb->input['username'], array('fields' => '*'));
|
{ $user = get_user_by_username($mybb->input['username'], array('fields' => '*'));
|
if(!$user['uid'])
| if(!$user)
|
{ $error = $lang->error_invalid_username; }
| { $error = $lang->error_invalid_username; }
|
Zeile 116 | Zeile 116 |
---|
else if($mybb->input['uid']) { $user = get_user($mybb->input['uid']);
|
else if($mybb->input['uid']) { $user = get_user($mybb->input['uid']);
|
if(!$user['uid'])
| if(!$user)
|
{ $error = $lang->error_invalid_uid; }
| { $error = $lang->error_invalid_uid; }
|
Zeile 526 | Zeile 526 |
---|
$is_super_admin = is_super_admin($mybb->user['uid']); }
|
$is_super_admin = is_super_admin($mybb->user['uid']); }
|
if($mybb->usergroup['cancp'] != 1 && !$is_super_admin || !$mybb->user['uid'])
| if(empty($mybb->usergroup['cancp']) && !$is_super_admin || !$mybb->user['uid'])
|
{ $uid = 0; if(isset($mybb->user['uid']))
| { $uid = 0; if(isset($mybb->user['uid']))
|