diff --git a/lib/topic_query.rb b/lib/topic_query.rb index d43ffd3cbdc..8c9ba0d1a34 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -470,7 +470,7 @@ class TopicQuery if options[:page] offset = options[:page].to_i * options[:per_page] - result.offset(offset) if offset > 0 + result = result.offset(offset) if offset > 0 end if options[:topic_ids]