remove duplicated code

This commit is contained in:
redmatrix
2015-12-06 19:59:46 -08:00
parent aa5b7eb98a
commit 2d799f2c11
2 changed files with 4 additions and 475 deletions

View File

@@ -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);