Skip to content

Commit

Permalink
[5.3] Update ChannelManager (#17068)
Browse files Browse the repository at this point in the history
* Update ChannelManager.php

* change channels variable name
  • Loading branch information
wuwx authored and taylorotwell committed Jan 1, 2017
1 parent d25de01 commit 5dd17b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Notifications/ChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public function sendNow($notifiables, $notification, array $channels = null)
foreach ($notifiables as $notifiable) {
$notificationId = Uuid::uuid4()->toString();

$channels = $channels ?: $notification->via($notifiable);
$viaChannels = $channels ?: $notification->via($notifiable);

if (empty($channels)) {
if (empty($viaChannels)) {
continue;
}

foreach ($channels as $channel) {
foreach ($viaChannels as $channel) {
$notification = clone $original;

if (! $notification->id) {
Expand Down

0 comments on commit 5dd17b6

Please sign in to comment.