From 97881fbbb62ffc7012a72204c8b2dab9bf8c2f60 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 21 Jul 2011 19:47:12 +0000 Subject: [PATCH] + avoid the listing of ZIM in content manager as remote if url attribute is empty (obvious) --- src/common/kiwix/manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }