From 0ff2d27c44fe124c40761b1cc00c84c20c39b0f1 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 29 May 2013 11:51:41 -0400
Subject: [PATCH] Fixed bug: wrong variable searched.

---
 module/VuFind/src/VuFind/Search/Solr/V3/ErrorListener.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/VuFind/src/VuFind/Search/Solr/V3/ErrorListener.php b/module/VuFind/src/VuFind/Search/Solr/V3/ErrorListener.php
index 15c8a61cfde..275756b7c65 100644
--- a/module/VuFind/src/VuFind/Search/Solr/V3/ErrorListener.php
+++ b/module/VuFind/src/VuFind/Search/Solr/V3/ErrorListener.php
@@ -78,8 +78,8 @@ class ErrorListener
             $error  = $event->getTarget();
             if ($error instanceOf HttpErrorException) {
                 $reason = $error->getResponse()->getReasonPhrase();
-                if (stristr($error, 'org.apache.lucene.queryParser.ParseException')
-                    || stristr($error, 'undefined field')
+                if (stristr($reason, 'org.apache.lucene.queryParser.ParseException')
+                    || stristr($reason, 'undefined field')
                 ) {
                     $error->addTag('VuFind\Search\ParserError');
                 }
-- 
GitLab