Merge pull request #126 from Olden/bug/logger

Fix notice for: 'Undefined variable: logger'
This commit is contained in:
Chris Boulton 2013-09-06 18:04:56 -07:00
commit b0843f4dba

View File

@ -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);
}