Skip to content
Snippets Groups Projects
Commit 83b0036e authored by Demian Katz's avatar Demian Katz
Browse files

Fix bug -- comparison not strict enough.

parent 47f0f555
No related merge requests found
......@@ -263,7 +263,7 @@ class Factory
$config = $sm->getServiceLocator()->get('VuFind\Config')->get('config');
$useRecaptcha = isset($config->Captcha) && isset($config->Captcha->forms)
&& (trim($config->Captcha->forms) === '*'
|| strpos($config->Captcha->forms, 'userComments'));
|| strpos($config->Captcha->forms, 'userComments') !== false);
return new UserComments(
'enabled' === $capabilities->getCommentSetting(),
$useRecaptcha
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment