diff --git a/goextVersion.go b/goextVersion.go index cb0729f..2912da9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.359" +const GoextVersion = "0.0.360" -const GoextVersionTimestamp = "2024-01-05T16:55:53+0100" +const GoextVersionTimestamp = "2024-01-06T01:31:07+0100" diff --git a/pagination/pagination.go b/pagination/pagination.go index ff588d6..88aaf5f 100644 --- a/pagination/pagination.go +++ b/pagination/pagination.go @@ -12,5 +12,8 @@ func CalcPaginationTotalPages(totalItems int, limit int) int { if totalItems == 0 { return 0 } + if limit == 0 { + return 0 + } return 1 + (totalItems-1)/limit }