Fix some warnings and errors caused by the previous commit. re #34
This commit is contained in:
parent
b46d1f524c
commit
185c59ce15
2 changed files with 3 additions and 2 deletions
3
book.php
3
book.php
|
@ -591,9 +591,10 @@ function getJson ($complete = false) {
|
|||
$out = array ();
|
||||
$pagequery = Base::PAGE_OPENSEARCH_QUERY;
|
||||
|
||||
// Special case when no databases were chosen, we search on all databases
|
||||
if (is_array ($config['calibre_directory']) && $multi === "1") {
|
||||
$i = 0;
|
||||
foreach ($config['calibre_directory'] as $key => $value) {
|
||||
foreach (array_keys ($config['calibre_directory']) as $key) {
|
||||
Base::clearDb ();
|
||||
array_push ($out, array ("title" => $key,
|
||||
"class" => "tt-header",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue