From: Jakob Sack Date: Wed, 8 Aug 2012 23:29:15 +0000 (+0200) Subject: Fixed bug in OC_BackgroundJob_Worker X-Git-Tag: v4.5.0beta1~74^2~136^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37ee88aa6d6470bdb0e500fc94fe75042453fbb7;p=nextcloud-server.git Fixed bug in OC_BackgroundJob_Worker --- diff --git a/lib/backgroundjob/worker.php b/lib/backgroundjob/worker.php index 23757529ad8..7514a16b696 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.