Commits

Christoph Haas committed e6807dc

An item_count of 0 is now processed correctly.

Comments (0)

Files changed (1)

webhelpers/paginate.py

 
         # Unless the user tells us how many items the collections has
         # we calculate that ourselves.
-        if item_count:
+        if item_count is not None:
             self.item_count = item_count
         else:
             self.item_count = len(self.collection)