배열 체크하도록 수정

This commit is contained in:
conory 2015-12-22 11:48:56 +09:00
parent 8e4f237b67
commit 7f18760161

View file

@ -25,9 +25,9 @@ class boardModel extends module
// get the list config value, if it is not exitsted then setup the default value
$list_config = $oModuleModel->getModulePartConfig('board', $module_srl);
if(!$list_config || count($list_config) <= 0)
if(!is_array($list_config) || count($list_config) <= 0)
{
$list_config = array( 'no', 'title', 'nick_name','regdate','readed_count');
$list_config = array('no', 'title', 'nick_name','regdate','readed_count');
}
// get the extra variables