fix: using whole codes instead of parts results in lag
This commit is contained in:
@@ -295,7 +295,7 @@ class BookSearch
|
|||||||
$books = [];
|
$books = [];
|
||||||
foreach($parts as $p) {
|
foreach($parts as $p) {
|
||||||
// if we use array_merge here the numerical keys (book code) will be lost
|
// if we use array_merge here the numerical keys (book code) will be lost
|
||||||
$bs->addOrQuery($codes, $field);
|
$bs->addOrQuery($p, $field);
|
||||||
$results = $bs->getResults(0, $count);
|
$results = $bs->getResults(0, $count);
|
||||||
$foundBooks = $results['books'];
|
$foundBooks = $results['books'];
|
||||||
$books += $foundBooks;
|
$books += $foundBooks;
|
||||||
|
|||||||
Reference in New Issue
Block a user