mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#1038 point에 의해 글을 읽을 수 없을 때 트리거에서 에러 리턴
This commit is contained in:
parent
32fb42d51e
commit
3fb8847d58
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue