diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-09 01:29:15 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-09 01:29:15 +0200 |
commit | 37ee88aa6d6470bdb0e500fc94fe75042453fbb7 (patch) | |
tree | fdef713fa6de1ecd8cf43baac3014efdf6585a8c /lib | |
parent | 13a0818fec4ac758fb050764fb33d90c74200cfe (diff) | |
download | nextcloud-server-37ee88aa6d6470bdb0e500fc94fe75042453fbb7.tar.gz nextcloud-server-37ee88aa6d6470bdb0e500fc94fe75042453fbb7.zip |
Fixed bug in OC_BackgroundJob_Worker
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backgroundjob/worker.php | 2 |
1 files changed, 1 insertions, 1 deletions
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. |