mirror of https://github.com/kiwix/libkiwix.git
+ avoid the listing of ZIM in content manager as remote if url attribute is empty (obvious)
This commit is contained in:
parent
8569f67c84
commit
97881fbbb6
|
@ -333,13 +333,13 @@ namespace kiwix {
|
||||||
}
|
}
|
||||||
} else if (mode == REMOTE) {
|
} else if (mode == REMOTE) {
|
||||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||||
if (itr->path == "") {
|
if (itr->path.empty() && !itr->url.empty()) {
|
||||||
this->bookIdList.push_back(itr->id);
|
this->bookIdList.push_back(itr->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||||
if (itr->path != "")
|
if (!itr->path.empty())
|
||||||
this->bookIdList.push_back(itr->id);
|
this->bookIdList.push_back(itr->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue