From fa66bc5150cdaa29d6556d7d81a78e7d8ce90a3a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 19 Oct 2024 16:55:53 +0200 Subject: [PATCH] [ticket/17414] Fix small issues with compatibility to legacy captchas PHPBB-17414 --- phpBB/phpbb/captcha/plugins/legacy_wrapper.php | 2 +- phpBB/phpbb/captcha/plugins/qa.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/captcha/plugins/legacy_wrapper.php b/phpBB/phpbb/captcha/plugins/legacy_wrapper.php index abb26b34ba..8f8642b2b2 100644 --- a/phpBB/phpbb/captcha/plugins/legacy_wrapper.php +++ b/phpBB/phpbb/captcha/plugins/legacy_wrapper.php @@ -86,7 +86,7 @@ class legacy_wrapper implements plugin_interface { if (method_exists($this->legacy_captcha, 'init')) { - $this->legacy_captcha->init($type); + $this->legacy_captcha->init($type->value); } } diff --git a/phpBB/phpbb/captcha/plugins/qa.php b/phpBB/phpbb/captcha/plugins/qa.php index 3e48df00b2..6e09aaaf13 100644 --- a/phpBB/phpbb/captcha/plugins/qa.php +++ b/phpBB/phpbb/captcha/plugins/qa.php @@ -40,7 +40,7 @@ class qa protected $service_name; /** @var int Question ID */ - protected $question = -1; + private $question = -1; /** * Constructor