From 03d31830d1f8bae8d58aa8dccb9f25a1373359b0 Mon Sep 17 00:00:00 2001 From: Alexander Kotynia Date: Thu, 22 Aug 2013 11:32:56 +0300 Subject: [PATCH] Fix notice for: 'Undefined variable: logger' --- bin/resque | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/resque b/bin/resque index b9a10cf..b8089ac 100755 --- a/bin/resque +++ b/bin/resque @@ -61,7 +61,7 @@ if($APP_INCLUDE) { // See if the APP_INCLUDE containes a logger object, // If none exists, fallback to internal logger -if (!isset($logger) && !is_object($logger)) { +if (!isset($logger) || !is_object($logger)) { $logger = new Resque_Log($logLevel); }