게시판 : 갤러리 목록 bo_gallery_height 값이 0일 때, height/max-height inline 지정 예외처리 (10653)

This commit is contained in:
minsupkr
2020-11-16 10:27:02 +09:00
parent b6c6644acb
commit 10d3847c8d
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</span>
</div>
<div class="gall_con">
<div class="gall_img" style="height:<?php echo $board['bo_gallery_height']; ?>px;max-height:<?php echo $board['bo_gallery_height']; ?>px">
<div class="gall_img" style="<?php if ($board['bo_gallery_height'] > 0) echo 'height:'.$board['bo_gallery_height'].'px;max-height:'.$board['bo_gallery_height'].'px'; ?>">
<a href="<?php echo $list[$i]['href'] ?>">
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>