From a303d66ae0de84c94d9b09a00b8f9e881f5d6342 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 11 May 2012 15:32:28 -0500 Subject: [PATCH] Fix bug in events. --- laravel/event.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/event.php b/laravel/event.php index 29a8c2b2..1f88d99f 100644 --- a/laravel/event.php +++ b/laravel/event.php @@ -151,6 +151,8 @@ class Event { // We will simply spin through each payload registered for the event and // fire the flusher, passing each payloads as we go. This allows all // 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) { array_unshift($payload, $key);