fix for blank tag counts

This commit is contained in:
albert
2013-02-20 16:05:03 -05:00
parent 46e915354d
commit b5064d197c
2 changed files with 11 additions and 9 deletions

View File

@@ -70,6 +70,7 @@ module Danbooru
# taken from kaminari (https://github.com/amatsuda/kaminari)
def total_count
raise if @paginator_options[:count] == 0
return @paginator_options[:count] if @paginator_options[:count]
c = except(:offset, :limit, :order)