Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 03:29:15 +0400
committerJakob Sack <mail@jakobsack.de>2012-08-09 03:29:15 +0400
commit37ee88aa6d6470bdb0e500fc94fe75042453fbb7 (patch)
treefdef713fa6de1ecd8cf43baac3014efdf6585a8c /lib/backgroundjob
parent13a0818fec4ac758fb050764fb33d90c74200cfe (diff)
Fixed bug in OC_BackgroundJob_Worker
Diffstat (limited to 'lib/backgroundjob')
-rw-r--r--lib/backgroundjob/worker.php2
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.