From 6a2c486f62512e9dfefa603cdbebd59890ded3c0 Mon Sep 17 00:00:00 2001 From: nwb Date: Tue, 24 Jun 2014 09:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E6=95=B0?= =?UTF-8?q?=E4=B8=BA10=E5=80=8D=E6=95=B0=E6=97=B6=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 8883aabb8..7128014da 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -475,6 +475,9 @@ class CoursesController < ApplicationController @bids = @bids.offset(@offset).limit(@limit).all.reverse else limit = @bid_count % @limit + if limit == 0 + limit = 10 + end @bids = @bids.offset(@offset).limit(limit).all.reverse end render :layout => 'base_courses'