From c140c28bd4c2ae0eb77a68b9a8ac8cfb4f58b62a Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Mon, 22 Jun 2015 11:48:57 +0200 Subject: [PATCH] format spellcheck results --- Lib/Search/BookSearch.php | 4 ++-- NetBiblio.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/Search/BookSearch.php b/Lib/Search/BookSearch.php index 6a1081a..ce3aa1f 100644 --- a/Lib/Search/BookSearch.php +++ b/Lib/Search/BookSearch.php @@ -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']; } } diff --git a/NetBiblio.php b/NetBiblio.php index 4892645..654e760 100644 --- a/NetBiblio.php +++ b/NetBiblio.php @@ -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';