mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
+ avoid the listing of ZIM in content manager as remote if url attribute is empty (obvious)
This commit is contained in:
@ -333,13 +333,13 @@ namespace kiwix {
|
||||
}
|
||||
} else if (mode == REMOTE) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||
if (itr->path != "")
|
||||
if (!itr->path.empty())
|
||||
this->bookIdList.push_back(itr->id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user