remove duplicated code
This commit is contained in:
@@ -36,7 +36,7 @@ class Receiver {
|
||||
$this->messagetype = $this->data['type'];
|
||||
}
|
||||
if(! $this->messagetype)
|
||||
$error = true;
|
||||
$this->error = true;
|
||||
|
||||
$this->sender = ((array_key_exists('sender',$this->data)) ? $this->data['sender'] : null);
|
||||
$this->recipients = ((array_key_exists('recipients',$this->data)) ? $this->data['recipients'] : null);
|
||||
|
Reference in New Issue
Block a user