diff --git a/app/controllers/messages.php b/app/controllers/messages.php index f8871dd3dc0b57dcc91393f76fa02edee06fdf51..d4f1dc90031c37ce4e0111fed6b10b276693c2ae 100644 --- a/app/controllers/messages.php +++ b/app/controllers/messages.php @@ -262,7 +262,7 @@ class MessagesController extends AuthenticatedController { $user = new MessageUser(); $user->setData(['user_id' => $member['user_id'], 'snd_rec' => 'rec']); - $this->default_message->receivers[] = $user; + $this->default_message->receivers->append($user); } } }