Merge pull request #422 from bjrambo/pr/ncenterlite-vote

추천알림을 알려주지 않는 문제점.
This commit is contained in:
BJRambo 2016-04-02 18:04:46 +09:00
commit ab0713de72
2 changed files with 15 additions and 2 deletions

View file

@ -119,6 +119,10 @@ class ncenterliteController extends ncenterlite
$args->target_browser = $module_info->browser_title;
$args->notify = $this->_getNotifyId($args);
$output = $this->_insertNotify($args, $is_anonymous);
if($output->toBool())
{
return $output;
}
}
}
@ -318,7 +322,7 @@ class ncenterliteController extends ncenterlite
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
if(isset($config->use[vote]))
if(!isset($config->use[vote]))
{
return new Object();
}
@ -346,6 +350,10 @@ class ncenterliteController extends ncenterlite
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
if(empty($config->use))
{
return new Object();
}
$args = new stdClass();
$args->srl = $obj->comment_srl;
@ -357,7 +365,7 @@ class ncenterliteController extends ncenterlite
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
if($config->use != 'Y')
if(empty($config->use))
{
return new Object();
}

View file

@ -11,6 +11,11 @@ class ncenterliteModel extends ncenterlite
{
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('ncenterlite');
if(!$config)
{
$config = new stdClass();
}
if(!$config->use)
{
$config->use = array();