Fix some warnings and errors caused by the previous commit. re #34

This commit is contained in:
Sébastien Lucas 2013-11-22 15:22:03 +01:00
parent b46d1f524c
commit 185c59ce15
2 changed files with 3 additions and 2 deletions

View file

@ -723,7 +723,7 @@ class PageQueryResult extends Page
$this->entryArray = Author::getAuthorsByStartingLetter ('%' . $this->query);
break;
case self::SCOPE_TAG :
$this->entryArray = Tag::getAllTagsByQuery ($this->query);
list ($this->entryArray, $this->totalNumber) = Tag::getAllTagsByQuery ($this->query, -1);
break;
case self::SCOPE_SERIES :
$this->entryArray = Serie::getAllSeriesByQuery ($this->query);

View file

@ -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",