format spellcheck results

This commit is contained in:
Gilles Crettenand
2015-06-22 11:48:57 +02:00
parent e4b5454c72
commit c140c28bd4
2 changed files with 3 additions and 3 deletions

View File

@@ -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'];
}
}

View File

@@ -13,7 +13,7 @@ use BSR\Lib\WebService;
class NetBiblio extends WebService
{
/** @var string $version version number */
public static $version = '1.1.5';
public static $version = '1.2.0';
private $login = '';
private $client = 'website';