PHP 8.1 기본스킨, 테마에서 없는 글,댓글 조회시 undefined variable 수정

This commit is contained in:
kit rio
2022-06-07 10:18:32 +09:00
committed by thisgun
parent 7950307173
commit 509b2c0be7
9 changed files with 64 additions and 38 deletions

View File

@ -75,9 +75,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
if($w == 'cu') {
$sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
$cmt = sql_fetch($sql);
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
$cmt['wr_content'] = '';
$c_wr_content = $cmt['wr_content'];
if (isset($cmt)) {
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id']))) {
$cmt['wr_content'] = '';
}
$c_wr_content = $cmt['wr_content'];
}
}
?>
<?php } ?>
@ -341,4 +345,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
});
});
</script>
<?php }
<?php }

View File

@ -75,9 +75,12 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
if($w == 'cu') {
$sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
$cmt = sql_fetch($sql);
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))
$cmt['wr_content'] = '';
$c_wr_content = $cmt['wr_content'];
if (isset($cmt)) {
if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id']))) {
$cmt['wr_content'] = '';
}
$c_wr_content = $cmt['wr_content'];
}
}
?>
<?php } ?>
@ -341,4 +344,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
});
});
</script>
<?php }
<?php }