diff --git a/controllers/threads_controller.go b/controllers/threads_controller.go index 95169fa..57c34bd 100644 --- a/controllers/threads_controller.go +++ b/controllers/threads_controller.go @@ -44,7 +44,7 @@ func GetThreads(c *gin.Context) { } pagesCount := int(math.Ceil(float64(count) / 10)) - if page > pagesCount && len(threads) != 0 { + if page > pagesCount && count != 0 { c.HTML(http.StatusNotFound, "404.html", nil) return }