Fixed bug in OC_BackgroundJob_Worker

This commit is contained in:
Jakob Sack 2012-08-09 01:29:15 +02:00
parent 13a0818fec
commit 37ee88aa6d

View file

@ -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.