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

More thorough notice prevention.

parent aee8e2eb
Branches
Tags
No related merge requests found
...@@ -101,7 +101,8 @@ class RecordCollection extends AbstractRecordCollection ...@@ -101,7 +101,8 @@ class RecordCollection extends AbstractRecordCollection
$params = isset($this->response['responseHeader']['params']) $params = isset($this->response['responseHeader']['params'])
? $this->response['responseHeader']['params'] : array(); ? $this->response['responseHeader']['params'] : array();
$sq = isset($params['spellcheck.q']) $sq = isset($params['spellcheck.q'])
? $params['spellcheck.q'] : $params['q']; ? $params['spellcheck.q']
: (isset($params['q']) ? $params['q'] : '');
$sugg = isset($this->response['spellcheck']['suggestions']) $sugg = isset($this->response['spellcheck']['suggestions'])
? $this->response['spellcheck']['suggestions'] : array(); ? $this->response['spellcheck']['suggestions'] : array();
$this->spellcheck = new Spellcheck($sugg, $sq); $this->spellcheck = new Spellcheck($sugg, $sq);
......
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