Skip to content

Commit a303d66

Browse files
committed
Fix bug in events.
1 parent b097b6c commit a303d66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

laravel/event.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ public static function flush($queue)
151151
// We will simply spin through each payload registered for the event and
152152
// fire the flusher, passing each payloads as we go. This allows all
153153
// the events on the queue to be processed by the flusher easily.
154+
if ( ! isset(static::$queued[$queue])) continue;
155+
154156
foreach (static::$queued[$queue] as $key => $payload)
155157
{
156158
array_unshift($payload, $key);

0 commit comments

Comments
 (0)