report.php (mybb_1822) | : | report.php (mybb_1823) | ||
---|---|---|---|---|
skipping to change at line 80 | skipping to change at line 80 | |||
if(!isset($forum['fid'])) | if(!isset($forum['fid'])) | |||
{ | { | |||
$error = $lang->sprintf($lang->error_invalid_report, $rep ort_type); | $error = $lang->sprintf($lang->error_invalid_report, $rep ort_type); | |||
} | } | |||
else | else | |||
{ | { | |||
$verified = true; | $verified = true; | |||
$button = '#post_'.$id.' .postbit_report'; | $button = '#post_'.$id.' .postbit_report'; | |||
} | } | |||
// Password protected forums ......... yhummmmy! | ||||
$id3 = $forum['fid']; | $id3 = $forum['fid']; | |||
check_forum_password($forum['parentlist']); | ||||
// Password protected forums ......... yhummmmy! | ||||
check_forum_password($forum['fid']); | ||||
} | } | |||
} | } | |||
else if($report_type == 'profile') | else if($report_type == 'profile') | |||
{ | { | |||
$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(!isset($user['uid'])) | |||
{ | { | |||
$error = $lang->sprintf($lang->error_invalid_report, $report_type ); | $error = $lang->sprintf($lang->error_invalid_report, $report_type ); | |||
} | } | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |