Zeile 67 | Zeile 67 |
---|
// Check for a valid forum $forum = get_forum($post['fid']);
|
// Check for a valid forum $forum = get_forum($post['fid']);
|
if(!isset($forum['fid']))
| if(!$forum)
|
{ $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
| { $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
|
Zeile 87 | Zeile 87 |
---|
{ $user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));
|
{ $user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));
|
if(!isset($user['uid']))
| if(!$user)
|
{ $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
| { $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
|
Zeile 193 | Zeile 193 |
---|
$reason = $db->fetch_array($query);
$new_report['reasonid'] = $reason['rid'];
|
$reason = $db->fetch_array($query);
$new_report['reasonid'] = $reason['rid'];
|
| $new_report['reason'] = '';
|
if($reason['extra']) {
| if($reason['extra']) {
|
Zeile 274 | Zeile 275 |
---|
} }
|
} }
|
if($mybb->input['no_modal'])
| if($mybb->get_input('no_modal'))
|
{ echo $report_reasons; exit;
| { echo $report_reasons; exit;
|