Changing the number of book per pages changed the search with multiple database. Reported by At-Libitum. fix #124
This commit is contained in:
parent
e9620c977a
commit
002c7596ea
3 changed files with 18 additions and 3 deletions
2
base.php
2
base.php
|
@ -752,7 +752,7 @@ class PageQueryResult extends Page
|
|||
$i = 0;
|
||||
foreach ($config['calibre_directory'] as $key => $value) {
|
||||
Base::clearDb ();
|
||||
list ($array, $totalNumber) = Book::getBooksByQuery (array ($crit, $crit, $crit, $crit), $this->n, $i);
|
||||
list ($array, $totalNumber) = Book::getBooksByQuery (array ($crit, $crit, $crit, $crit), 1, $i, 1);
|
||||
array_push ($this->entryArray, new Entry ($key, DB . ":query:{$i}",
|
||||
str_format (localize ("bookword", count($array)), count($array)), "text",
|
||||
array ( new LinkNavigation ("?" . DB . "={$i}&page=9&query=" . $this->query))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue