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

Fixed bug: wrong variable searched.

parent c5911e89
No related merge requests found
......@@ -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');
}
......
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