improve the code of the option to operate on the situation.

This commit is contained in:
BJRambo 2016-04-02 17:30:50 +09:00
parent 4816df696e
commit 5ac4836453
2 changed files with 14 additions and 1 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;
}
}
}
@ -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();