diff --git a/lib/shop.lib.php b/lib/shop.lib.php index ef620e915..e596d8523 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -219,9 +219,11 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_ $sql .= " order by it_order, it_id desc limit $items "; $result = sql_query($sql); + /* if (!mysql_num_rows($result)) { return false; } + */ $file = G4_SHOP_PATH.'/'.$skin_file; if (!file_exists($file)) { diff --git a/shop/list.skin.10.php b/shop/list.skin.10.php index 51e6320c8..635f3a7dc 100644 --- a/shop/list.skin.10.php +++ b/shop/list.skin.10.php @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/list.skin.11.php b/shop/list.skin.11.php index 328d42b49..c6a8a8e39 100644 --- a/shop/list.skin.11.php +++ b/shop/list.skin.11.php @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/list.skin.12.php b/shop/list.skin.12.php index 13b3ffc13..59ce62a44 100644 --- a/shop/list.skin.12.php +++ b/shop/list.skin.12.php @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/list.skin.13.php b/shop/list.skin.13.php index ee2dc42b0..cc12d72e0 100644 --- a/shop/list.skin.13.php +++ b/shop/list.skin.13.php @@ -42,6 +42,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php index 3aabc0d06..d14bfa64c 100644 --- a/shop/maintype10.inc.php +++ b/shop/maintype10.inc.php @@ -33,6 +33,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/maintype11.inc.php b/shop/maintype11.inc.php index 6fa49be19..38b31c2a4 100644 --- a/shop/maintype11.inc.php +++ b/shop/maintype11.inc.php @@ -33,6 +33,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/maintype12.inc.php b/shop/maintype12.inc.php index 12fd0077c..851a32065 100644 --- a/shop/maintype12.inc.php +++ b/shop/maintype12.inc.php @@ -35,6 +35,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?> diff --git a/shop/maintype13.inc.php b/shop/maintype13.inc.php index 6e7c407b3..3f3f72b71 100644 --- a/shop/maintype13.inc.php +++ b/shop/maintype13.inc.php @@ -38,6 +38,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { 구글플러스에 공유 - 1) echo ''; + +if($i == 1) echo '

등록된 상품이 없습니다.

'; ?>