mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix warning when the author's member info cannot be found
This commit is contained in:
parent
720193d9b9
commit
2baa4b5369
1 changed files with 2 additions and 2 deletions
|
|
@ -871,7 +871,7 @@ class BoardView extends Board
|
|||
if ($this->module_info->protect_admin_content_update !== 'N')
|
||||
{
|
||||
$member_info = MemberModel::getMemberInfo($oDocument->get('member_srl'));
|
||||
if($member_info->is_admin == 'Y' && $this->user->is_admin != 'Y')
|
||||
if(isset($member_info->is_admin) && $member_info->is_admin == 'Y' && $this->user->is_admin != 'Y')
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('msg_admin_document_no_modify');
|
||||
}
|
||||
|
|
@ -1021,7 +1021,7 @@ class BoardView extends Board
|
|||
if ($this->module_info->protect_admin_content_delete !== 'N')
|
||||
{
|
||||
$member_info = MemberModel::getMemberInfo($oDocument->get('member_srl'));
|
||||
if($member_info->is_admin == 'Y' && $this->user->is_admin != 'Y')
|
||||
if(isset($member_info->is_admin) && $member_info->is_admin == 'Y' && $this->user->is_admin != 'Y')
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('document.msg_document_is_admin_not_permitted');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue