phpBB

Code Changes

File: phpbb/report/controller/report.php

  Unmodified   Added   Modified   Removed
Line 141Line 141
		// Handle request
try
{

		// Handle request
try
{

			if (!empty($submit) && sizeof($error) === 0)

			if (!empty($submit) && count($error) === 0)

			{
$this->report_handler->add_report(
(int) $id,

			{
$this->report_handler->add_report(
(int) $id,

Line 273Line 273
		}

$this->template->assign_vars(array(

		}

$this->template->assign_vars(array(

			'ERROR'				=> (sizeof($error) > 0) ? implode('<br />', $error) : '',

			'ERROR'				=> (count($error) > 0) ? implode('<br />', $error) : '',

			'S_REPORT_POST'		=> ($mode === 'pm') ? false : true,
'REPORT_TEXT' => $report_text,
'S_HIDDEN_FIELDS' => (!empty($s_hidden_fields)) ? $s_hidden_fields : null,

			'S_REPORT_POST'		=> ($mode === 'pm') ? false : true,
'REPORT_TEXT' => $report_text,
'S_HIDDEN_FIELDS' => (!empty($s_hidden_fields)) ? $s_hidden_fields : null,

Line 302Line 302
			$error[] = $visual_confirmation_response;
}


			$error[] = $visual_confirmation_response;
}


		if (sizeof($error) === 0)

		if (count($error) === 0)

		{
$captcha->reset();
}

		{
$captcha->reset();
}