From c6160f22fdcd187fb038a58ddb7ecd7cdc5dbb85 Mon Sep 17 00:00:00 2001 From: JK Lim Date: Wed, 16 Jan 2019 23:00:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20=EC=A0=84=EC=B2=B4=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=88=98=EA=B0=80=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EB=A5=BC=20=EC=9D=B4=EB=8F=99=ED=95=98=EB=8A=94=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=EC=88=98=EB=B3=B4=EB=8B=A4=20=EC=A0=81=EC=9D=84=20?= =?UTF-8?q?=EB=95=8C=20=EC=9D=BC=EB=B6=80=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EB=B2=88=ED=98=B8=EA=B0=80=20=ED=91=9C=EC=8B=9C=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=AC=B8=EC=A0=9C=EB=A5=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=ED=95=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/page/PageHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/page/PageHandler.class.php b/classes/page/PageHandler.class.php index bebbdc7df9..2f3e3c3e1d 100644 --- a/classes/page/PageHandler.class.php +++ b/classes/page/PageHandler.class.php @@ -39,7 +39,7 @@ function __construct($total_count, $total_page, $cur_page, $page_count = 10) $this->point = 0; $first_page = $cur_page - (int) ($page_count / 2); - if($first_page < 1) + if($first_page < 1 || $total_page <= $page_count) { $first_page = 1; }