Fixed bug in OC_BackgroundJob_Worker

remotes/origin/stable45
Jakob Sack 13 years ago
parent 13a0818fec
commit 37ee88aa6d
  1. 2
      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.

Loading…
Cancel
Save