From 6e754ca6a05a2b4bcdd66e8141e1bcc8264cbadf Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 4 Jun 2013 11:58:57 -0400 Subject: [PATCH] Small optimization. --- module/VuFind/src/VuFind/Search/SolrAuthor/Params.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php b/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php index e819103a962..df3b1a5cd4d 100644 --- a/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php +++ b/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php @@ -73,7 +73,7 @@ class Params extends \VuFind\Search\Solr\Params // For display purposes, undo the query manipulation performed above // in initBasicSearch(): $q = parent::getDisplayQuery(); - return str_replace('\"', '"', substr($q, 1, strlen($q) - 2)); + return str_replace('\"', '"', substr($q, 1, -1)); } /** -- GitLab