diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/report.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/report.php b/phpBB/report.php index 3f2e7a91ff..063e55e571 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -157,10 +157,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 * |