Commit 5d96c1a3 authored by Greg Eisenman's avatar Greg Eisenman

Collations and correctlySpelled issue #320

parent df03b4da
...@@ -102,7 +102,6 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf ...@@ -102,7 +102,6 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
* directly under spellcheck. * directly under spellcheck.
*/ */
if (isset($data['spellcheck']['collations']) && if (isset($data['spellcheck']['collations']) &&
!isset($collations) &&
is_array($data['spellcheck']['collations']) is_array($data['spellcheck']['collations'])
) { ) {
foreach ($data['spellcheck']['collations'] as $collationResult) { foreach ($data['spellcheck']['collations'] as $collationResult) {
...@@ -116,8 +115,7 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf ...@@ -116,8 +115,7 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
} }
} }
if (isset($data['spellcheck']['correctlySpelled']) && if (isset($data['spellcheck']['correctlySpelled'])
!isset($correctlySpelled)
) { ) {
$correctlySpelled = $data['spellcheck']['correctlySpelled']; $correctlySpelled = $data['spellcheck']['correctlySpelled'];
} }
......
Markdown is supported
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