From 1359256ac6f7cac3ef71783ff1381df445cb3363 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Apr 2019 11:13:55 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B3=B4=EA=B8=B0=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/largeimage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/largeimage.php b/shop/largeimage.php index ac70dc91d..60e8cea41 100644 --- a/shop/largeimage.php +++ b/shop/largeimage.php @@ -7,7 +7,7 @@ if (G5_IS_MOBILE) { } $it_id = get_search_string(trim($_GET['it_id'])); -$no = $_GET['no']; +$no = (isset($_GET['no']) && $_GET['no']) ? (int) $_GET['no'] : 1; $sql = " select it_id, it_name, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 from {$g5['g5_shop_item_table']} where it_id='$it_id' "; @@ -18,7 +18,7 @@ if(!$row['it_id']) $imagefile = G5_DATA_PATH.'/item/'.$row['it_img'.$no]; $imagefileurl = G5_DATA_URL.'/item/'.$row['it_img'.$no]; -$size = getimagesize($imagefile); +$size = @getimagesize($imagefile); $g5['title'] = "{$row['it_name']} ($it_id)"; include_once(G5_PATH.'/head.sub.php');