diff --git a/modules/communication/communication.controller.php b/modules/communication/communication.controller.php index 1c3066901..5fac8f36d 100644 --- a/modules/communication/communication.controller.php +++ b/modules/communication/communication.controller.php @@ -63,7 +63,7 @@ if($logged_info->is_admin != 'Y') { if($receiver_member_info->allow_message == 'F') { if(!$oCommunicationModel->isFriend($receiver_member_info->member_srl)) return new object(-1, 'msg_allow_message_to_friend'); - } elseif($receiver_member_info->allow_messge == 'N') { + } elseif($receiver_member_info->allow_message == 'N') { return new object(-1, 'msg_disallow_message'); } } diff --git a/modules/communication/communication.view.php b/modules/communication/communication.view.php index 589d4cfaf..b6cb654a1 100644 --- a/modules/communication/communication.view.php +++ b/modules/communication/communication.view.php @@ -130,6 +130,11 @@ } $receiver_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl); + if(!$receiver_info) + { + return $this->stop('msg_invalid_request'); + } + Context::set('receiver_info', $receiver_info); // set a signiture by calling getEditor of the editor module $oEditorModel = &getModel('editor');