From: Michael Date: Wed, 6 Dec 2017 16:50:52 +0000 (+0000) Subject: Cut and paste is always fun X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7099a54b3d209bd5eb04613010ac3484563f0c45;p=friendica.git Cut and paste is always fun --- diff --git a/src/Worker/DBClean.php b/src/Worker/DBClean.php index 40883d5138..45a080400e 100644 --- a/src/Worker/DBClean.php +++ b/src/Worker/DBClean.php @@ -17,9 +17,6 @@ class DBClean { return; } - // Get the expire days for step 8 and 9 - $days = Config::get('system', 'dbclean-expire-days', 0); - if ($stage == 0) { self::forkCleanProcess(); } else { @@ -31,6 +28,9 @@ class DBClean { * @brief Fork the different DBClean processes */ private static function forkCleanProcess() { + // Get the expire days for step 8 and 9 + $days = Config::get('system', 'dbclean-expire-days', 0); + for ($i = 1; $i <= 10; $i++) { // Execute the background script for a step when it isn't finished. // Execute step 8 and 9 only when $days is defined.