Fixed bug in OC_BackgroundJob_Worker
This commit is contained in:
parent
13a0818fec
commit
37ee88aa6d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue