PHP8 에서 경고문이 나올수 있는 코드 추가 수정
This commit is contained in:
@ -5,12 +5,14 @@ include_once(G5_EDITOR_LIB);
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
|
||||
$iq_id = isset($_REQUEST['iq_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['iq_id']) : 0;
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_item_qa_table']} a
|
||||
left join {$g5['member_table']} b on (a.mb_id = b.mb_id)
|
||||
where iq_id = '$iq_id' ";
|
||||
$iq = sql_fetch($sql);
|
||||
if (!$iq['iq_id']) alert('등록된 자료가 없습니다.');
|
||||
if (! (isset($iq['iq_id']) && $iq['iq_id'])) alert('등록된 자료가 없습니다.');
|
||||
|
||||
$name = get_sideview($iq['mb_id'], get_text($iq['iq_name']), $iq['mb_email'], $iq['mb_homepage']);
|
||||
|
||||
|
||||
@ -139,8 +139,9 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
||||
// 선택옵션이 있을 경우 주문대기 수량 계산하지 않음
|
||||
$sql2 = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$wait_qty = 0;
|
||||
|
||||
if(!$row2['cnt']) {
|
||||
if(! (isset($row2['cnt']) && $row2['cnt'])) {
|
||||
$sql1 = " select SUM(ct_qty) as sum_qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
|
||||
@ -471,6 +471,9 @@ function get_it_thumbnail($img, $width, $height=0, $id='', $is_crop=false)
|
||||
if(is_file($file))
|
||||
$size = @getimagesize($file);
|
||||
|
||||
if (! (isset($size) && is_array($size)))
|
||||
return '';
|
||||
|
||||
if($size[2] < 1 || $size[2] > 3)
|
||||
return '';
|
||||
|
||||
|
||||
@ -167,6 +167,7 @@ var g5_shop_url = "<?php echo G5_SHOP_URL; ?>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
$qstr1 = '';
|
||||
if($i > 0 && $total_count > $items) {
|
||||
$qstr1 .= 'ca_id='.$ca_id;
|
||||
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
||||
|
||||
Reference in New Issue
Block a user