From 7ab93b234451d3b0179ff12f2dececa21b6c3873 Mon Sep 17 00:00:00 2001 From: chschy Date: Mon, 27 Feb 2012 07:34:05 +0000 Subject: [PATCH] revert to r10183 git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10213 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/communication/communication.view.php | 7 +------ modules/communication/lang/lang.xml | 14 +------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/modules/communication/communication.view.php b/modules/communication/communication.view.php index 589d4cfaf..8451812ca 100644 --- a/modules/communication/communication.view.php +++ b/modules/communication/communication.view.php @@ -111,13 +111,8 @@ if(!Context::get('is_logged')) return $this->stop('msg_not_logged'); $logged_info = Context::get('logged_info'); // get receipient's information - - // check inalid request $receiver_srl = Context::get('receiver_srl'); - if(!$receiver_srl) return $this->stop('msg_invalid_request'); - - // check receiver and sender are same - if($logged_info->member_srl == $receiver_srl) return $this->stop('msg_cannot_send_to_yourself'); + if(!$receiver_srl || $logged_info->member_srl == $receiver_srl) return $this->stop('msg_not_logged'); // get message_srl of the original message if it is a reply $message_srl = Context::get('message_srl'); if($message_srl) { diff --git a/modules/communication/lang/lang.xml b/modules/communication/lang/lang.xml index d87294abe..58ff11d1f 100644 --- a/modules/communication/lang/lang.xml +++ b/modules/communication/lang/lang.xml @@ -277,18 +277,6 @@ - - - - - - - - - - - - @@ -366,4 +354,4 @@ - + \ No newline at end of file