Merge branch 'develop' into trunk
This commit is contained in:
commit
a8f0105150
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class SendNotificationMail
|
|||
public function handle(NotifySubscriptions $event)
|
||||
{
|
||||
foreach ($event->ticket->subscriptions as $sub) {
|
||||
if ($sub->email !== Auth::user()->email) {
|
||||
if (Auth::user() and $sub->email !== Auth::user()->email) {
|
||||
Mail::to($sub->email)->send(new TicketUpdate($event->ticket, $event->corpsMaj));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue