diff --git a/lib/backgroundjob/worker.php b/lib/backgroundjob/worker.php index 23757529ad8dcc6be1a296de8fb8d5e7df2ae3d1..7514a16b6964d0dc58a5bf5a9332dcb57bc0ea73 100644 --- a/lib/backgroundjob/worker.php +++ b/lib/backgroundjob/worker.php @@ -88,7 +88,7 @@ class OC_BackgroundJob_Worker{ } else{ $tasks = OC_BackgroundJob_ScheduledTask::all(); - if( length( $tasks )){ + if( count( $tasks )){ $task = $tasks[0]; // delete job before we execute it. This prevents endless loops // of failing jobs.