]> source.dussan.org Git - nextcloud-server.git/commitdiff
BackgroundJobs: fix bug
authorJakob Sack <mail@jakobsack.de>
Thu, 9 Aug 2012 20:07:18 +0000 (22:07 +0200)
committerJakob Sack <mail@jakobsack.de>
Thu, 9 Aug 2012 20:07:18 +0000 (22:07 +0200)
lib/backgroundjob/worker.php

index 0acbb9d32172ebc30b32de88b67cb32469097de9..8a58a76e3a4dae2da2cfb750cd8e025cf33fa9e3 100644 (file)
@@ -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;