roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r430449 - in /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers: WeblogEntriesDayPager.java WeblogEntriesLatestPager.java WeblogEntriesMonthPager.java
Date Thu, 10 Aug 2006 17:33:17 GMT
Author: agilliland
Date: Thu Aug 10 10:33:16 2006
New Revision: 430449

URL: http://svn.apache.org/viewvc?rev=430449&view=rev
Log:
fixing slight bug that would leave an empty day entry in the map.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesDayPager.java
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesLatestPager.java
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesMonthPager.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesDayPager.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesDayPager.java?rev=430449&r1=430448&r2=430449&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesDayPager.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesDayPager.java
Thu Aug 10 10:33:16 2006
@@ -130,7 +130,9 @@
                     }
                     
                     // done with that day, put it in the map
-                    entries.put(key, wrapped);
+                    if(wrapped.size() > 0) {
+                        entries.put(key, wrapped);
+                    }
                 }
                 
                 

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesLatestPager.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesLatestPager.java?rev=430449&r1=430448&r2=430449&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesLatestPager.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesLatestPager.java
Thu Aug 10 10:33:16 2006
@@ -95,7 +95,9 @@
                     }
                     
                     // done with that day, put it in the map
-                    entries.put(key, wrapped);
+                    if(wrapped.size() > 0) {
+                        entries.put(key, wrapped);
+                    }
                 }
             } catch (Exception e) {
                 log.error("ERROR: getting entry month map", e);

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesMonthPager.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesMonthPager.java?rev=430449&r1=430448&r2=430449&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesMonthPager.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/pagers/WeblogEntriesMonthPager.java
Thu Aug 10 10:33:16 2006
@@ -125,7 +125,9 @@
                     }
                     
                     // done with that day, put it in the map
-                    entries.put(key, wrapped);
+                    if(wrapped.size() > 0) {
+                        entries.put(key, wrapped);
+                    }
                 }
             } catch (Exception e) {
                 log.error("ERROR: getting entry month map", e);



Mime
View raw message