From ae9c2722c8be77206bbae07d670d675c2c455523 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 4 Sep 2013 15:22:29 -0400 Subject: [PATCH] More thorough notice prevention. --- .../Backend/Solr/Response/Json/RecordCollection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/RecordCollection.php b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/RecordCollection.php index d9158d86234..371a32cde2e 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/RecordCollection.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Response/Json/RecordCollection.php @@ -101,7 +101,8 @@ class RecordCollection extends AbstractRecordCollection $params = isset($this->response['responseHeader']['params']) ? $this->response['responseHeader']['params'] : array(); $sq = isset($params['spellcheck.q']) - ? $params['spellcheck.q'] : $params['q']; + ? $params['spellcheck.q'] + : (isset($params['q']) ? $params['q'] : ''); $sugg = isset($this->response['spellcheck']['suggestions']) ? $this->response['spellcheck']['suggestions'] : array(); $this->spellcheck = new Spellcheck($sugg, $sq); -- GitLab