Skip to content

Commit 03d3183

Browse files
author
Alexander Kotynia
committed
Fix notice for: 'Undefined variable: logger'
1 parent 468f1ce commit 03d3183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/resque

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if($APP_INCLUDE) {
6161

6262
// See if the APP_INCLUDE containes a logger object,
6363
// If none exists, fallback to internal logger
64-
if (!isset($logger) && !is_object($logger)) {
64+
if (!isset($logger) || !is_object($logger)) {
6565
$logger = new Resque_Log($logLevel);
6666
}
6767

0 commit comments

Comments
 (0)