format spellcheck results
This commit is contained in:
@@ -188,8 +188,8 @@ class BookSearch
|
||||
|
||||
$spelling = array();
|
||||
if(isset($results['spellcheck']['suggestions'])) {
|
||||
foreach($results['spellcheck']['suggestions'] as $s) {
|
||||
$spelling[] = $s;
|
||||
foreach($results['spellcheck']['suggestions'] as $word => $s) {
|
||||
$spelling[$word] = $s['suggestion'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user