diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index dd0b378d0..734b1771c 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -142,18 +142,19 @@ namespace kiwix { if (content.empty()) { this->getContentByUrl( "/I/favicon.png", content, contentLength, mimeType); - } - if (content.empty()) { - this->getContentByUrl( "/I/favicon", content, - contentLength, mimeType); - } - if (content.empty()) { - this->getContentByUrl( "/-/favicon", content, - contentLength, mimeType); + if (content.empty()) { + this->getContentByUrl( "/I/favicon", content, + contentLength, mimeType); + + if (content.empty()) { + this->getContentByUrl( "/-/favicon", content, + contentLength, mimeType); + } + } } - + return content.empty() ? false : true; }