diff --git a/phpBB/posting.php b/phpBB/posting.php index a82854c3a4..9d06ac3e2c 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1257,7 +1257,7 @@ $s_hidden_fields .= '' : ''; // Add the confirm id/code pair to the hidden fields, else an error is displayed on next submit/preview -if ($captcha->is_solved() !== false) +if (isset($captcha) && $captcha->is_solved() !== false) { $s_hidden_fields .= build_hidden_fields($captcha->get_hidden_fields()); }