From 8550771efd152d4ab12204cd0982eb1b41d219e0 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 13 Mar 2018 15:14:45 -0400
Subject: [PATCH] Fix bug -- comparison not strict enough.

---
 module/VuFind/src/VuFind/RecordTab/Factory.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/RecordTab/Factory.php b/module/VuFind/src/VuFind/RecordTab/Factory.php
index f4c24ed778e..f68ba6a0fb1 100644
--- a/module/VuFind/src/VuFind/RecordTab/Factory.php
+++ b/module/VuFind/src/VuFind/RecordTab/Factory.php
@@ -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
-- 
GitLab