From 591c7ee0e9724ffa9fbcddbc20a4d227badc4360 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 16:42:23 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=88=98=EA=B0=80=200=20=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20Division=20by=20zero=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EB=82=98=EC=98=A4=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=A1=B0=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 6 +++--- skin/board/gallery/list.skin.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bbs/list.php b/bbs/list.php index 6a0877866..0a80c3ec0 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -64,9 +64,9 @@ if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id' // 정렬에 사용하는 QUERY_STRING $qstr2 = 'bo_table='.$bo_table.'&sop='.$sop; -if ($board['bo_gallery_cols']) { - $td_width = (int)(100 / $board['bo_gallery_cols']); -} +// 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 1 로 설정 +$bo_gallery_cols = $board['bo_gallery_cols'] ? $board['bo_gallery_cols'] : 1; +$td_width = (int)(100 / $bo_gallery_cols); // 정렬 // 인덱스 필드가 아니면 정렬에 사용하지 않음 diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index 17f426c57..f15321fc9 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -46,13 +46,13 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');