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
1 changed files with 1 additions and 1 deletions

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.