From: Harishankar Date: Tue, 26 May 2020 06:19:46 +0000 (+0530) Subject: Minor Fix: Fixed bug for MAX_RSS_FEED X-Git-Url: https://harishankar.org/repos/?a=commitdiff_plain;h=ae0c23a6fa549d9030e0254adf9d87a1e60b9959;p=biaweb2.git Minor Fix: Fixed bug for MAX_RSS_FEED Fixed small bug in MAX_RSS_FEED - fixed the comparison operator to < from <= --- diff --git a/biawebdocumenttree.hpp b/biawebdocumenttree.hpp index eeb8b15..a9f1ccd 100644 --- a/biawebdocumenttree.hpp +++ b/biawebdocumenttree.hpp @@ -246,7 +246,7 @@ namespace biaweb { urlpath + doc.get_filename() + ".html", doc.get_creation_date()); // If the items don't exceed max size of RSS feed - if (feed.get()->get_num_items() <= MAX_RSS_FEED) + if (feed.get()->get_num_items() < MAX_RSS_FEED) feed.get()->add_rss_item (fitem); // Add the document details to the document list DocListItem item (&doc, urlpath);