+ avoid the listing of ZIM in content manager as remote if url attribute is empty (obvious)

This commit is contained in:
kelson42 2011-07-21 19:47:12 +00:00
parent 8569f67c84
commit 97881fbbb6
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}