Fix notice for: 'Undefined variable: logger'

This commit is contained in:
Alexander Kotynia 2013-08-22 11:32:56 +03:00
parent 468f1ce78a
commit 03d31830d1

View File

@ -61,7 +61,7 @@ if($APP_INCLUDE) {
// See if the APP_INCLUDE containes a logger object, // See if the APP_INCLUDE containes a logger object,
// If none exists, fallback to internal logger // If none exists, fallback to internal logger
if (!isset($logger) && !is_object($logger)) { if (!isset($logger) || !is_object($logger)) {
$logger = new Resque_Log($logLevel); $logger = new Resque_Log($logLevel);
} }