#1038 point에 의해 글을 읽을 수 없을 때 트리거에서 에러 리턴

This commit is contained in:
akasima 2015-01-12 19:53:38 +09:00
parent 32fb42d51e
commit 3fb8847d58

View file

@ -422,8 +422,9 @@ class pointController extends point
// When the requested points are negative, compared it with the current point
if($config->disable_read_document == 'Y' && $point < 0 && abs($point)>$cur_point)
{
$obj->add('content', sprintf(Context::getLang('msg_disallow_by_point'), abs($point), $cur_point));
return new Object();
$message = sprintf(Context::getLang('msg_disallow_by_point'), abs($point), $cur_point);
$obj->add('content', $message);
return new Object(-1, $message);
}
// If not logged in, pass
if(!$logged_info->member_srl) return new Object();