Fix bug in events.
This commit is contained in:
parent
b097b6c682
commit
a303d66ae0
|
@ -151,6 +151,8 @@ public static function flush($queue)
|
||||||
// We will simply spin through each payload registered for the event and
|
// We will simply spin through each payload registered for the event and
|
||||||
// fire the flusher, passing each payloads as we go. This allows all
|
// fire the flusher, passing each payloads as we go. This allows all
|
||||||
// the events on the queue to be processed by the flusher easily.
|
// the events on the queue to be processed by the flusher easily.
|
||||||
|
if ( ! isset(static::$queued[$queue])) continue;
|
||||||
|
|
||||||
foreach (static::$queued[$queue] as $key => $payload)
|
foreach (static::$queued[$queue] as $key => $payload)
|
||||||
{
|
{
|
||||||
array_unshift($payload, $key);
|
array_unshift($payload, $key);
|
||||||
|
|
Loading…
Reference in New Issue