mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 23:32:54 +09:00
Merge pull request #422 from bjrambo/pr/ncenterlite-vote
추천알림을 알려주지 않는 문제점.
This commit is contained in:
commit
ab0713de72
2 changed files with 15 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue