1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 17:27:16 +02:00

Merge remote-tracking branch 'marc1706/ticket/11720-prep-release' into prep-release-3.0.12

* marc1706/ticket/11720-prep-release:
  [ticket/11720] Add functional test for submitting report as user
  [ticket/11720] Do not call $captcha->validate if $captcha is not set
This commit is contained in:
Andreas Fischer
2013-07-22 00:32:35 +02:00
2 changed files with 18 additions and 10 deletions

View File

@@ -146,10 +146,13 @@ $s_hidden_fields = '';
// Submit report?
if ($submit && $reason_id)
{
$visual_confirmation_response = $captcha->validate();
if ($visual_confirmation_response)
if (isset($captcha))
{
$error[] = $visual_confirmation_response;
$visual_confirmation_response = $captcha->validate();
if ($visual_confirmation_response)
{
$error[] = $visual_confirmation_response;
}
}
$sql = 'SELECT *