NOISSUE 게시판 카테고리 감춤 설정을 제대로 반영하지 못하는 문제 수정.

This commit is contained in:
bnu 2014-01-20 18:00:37 +09:00
parent d441370523
commit 0eeaaef055

View file

@ -47,16 +47,27 @@ class boardView extends board
}
// use_category <=1.5.x, hide_category >=1.7.x
$count_category = count($oDocumentModel->getCategoryList($this->module_info->module_srl));
if($count_category && ($this->module_info->hide_category != 'Y' || $this->module_info->use_category != 'N'))
$count_category = count($oDocumentModel->getCategoryList($module_srl));
if($count_category)
{
$this->module_info->hide_category = 'N';
$this->module_info->use_category = 'Y';
if($config->hide_category)
{
$config->use_category = ($config->hide_category == 'Y') ? 'N' : 'Y';
}
else if($config->use_category)
{
$config->hide_category = ($config->use_category == 'Y') ? 'N' : 'Y';
}
else
{
$config->hide_category = 'N';
$config->use_category = 'Y';
}
}
else
{
$this->module_info->hide_category = 'Y';
$this->module_info->use_category = 'N';
$config->hide_category = 'Y';
$config->use_category = 'N';
}
/**