diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index 2e866232d..a33794da4 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -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); } }