diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-09 22:07:18 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-09 22:07:18 +0200 |
commit | a6a1f892f06e23a405d14d5e0b3eb843c0154909 (patch) | |
tree | 1916499bf773ed40c722cd5ab4491810de0b419f /lib | |
parent | 2b5f005547e920c8071782f975ac98d81475f45a (diff) | |
download | nextcloud-server-a6a1f892f06e23a405d14d5e0b3eb843c0154909.tar.gz nextcloud-server-a6a1f892f06e23a405d14d5e0b3eb843c0154909.zip |
BackgroundJobs: fix bug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backgroundjob/worker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backgroundjob/worker.php b/lib/backgroundjob/worker.php index 0acbb9d3217..8a58a76e3a4 100644 --- a/lib/backgroundjob/worker.php +++ b/lib/backgroundjob/worker.php @@ -73,8 +73,8 @@ class OC_BackgroundJob_Worker{ // search for next background job foreach( $regular_tasks as $key => $value ){ - if( strcmp( $lasttask, $key ) > 0 ){ - OC_Appconfig::getValue( 'core', 'backgroundjobs_task', $key ); + if( strcmp( $key, $lasttask ) > 0 ){ + OC_Appconfig::setValue( 'core', 'backgroundjobs_task', $key ); $done = true; call_user_func( $value ); break; |