추천취소시 알림 삭제 조건(가독성 등) 개선

This commit is contained in:
conory 2020-04-04 15:44:21 +09:00
parent af430419e2
commit 6f4e1839a0

View file

@ -566,7 +566,7 @@ class ncenterliteController extends ncenterlite
{ {
return; return;
} }
if($obj->point < 0) if($obj->update_target !== 'voted_count')
{ {
return; return;
} }
@ -597,11 +597,11 @@ class ncenterliteController extends ncenterlite
{ {
$oNcenterliteModel = getModel('ncenterlite'); $oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig(); $config = $oNcenterliteModel->getConfig();
if(!isset($config->use['vote'])) if(empty($config->use))
{ {
return; return;
} }
if($obj->point < 0) if($obj->update_target !== 'voted_count')
{ {
return; return;
} }
@ -630,7 +630,7 @@ class ncenterliteController extends ncenterlite
{ {
return; return;
} }
if($obj->point < 0) if($obj->update_target !== 'voted_count')
{ {
return; return;
} }
@ -664,11 +664,11 @@ class ncenterliteController extends ncenterlite
{ {
$oNcenterliteModel = getModel('ncenterlite'); $oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig(); $config = $oNcenterliteModel->getConfig();
if(!isset($config->use['vote'])) if(empty($config->use))
{ {
return; return;
} }
if($obj->point < 0) if($obj->update_target !== 'voted_count')
{ {
return; return;
} }