]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DBUpdate.php
Don't add contacts when not needed
[friendica.git] / src / Worker / DBUpdate.php
index ae25760c8765acd69c32fbbeee68d3bbe40cb1f1..5f7dfcb79600df2fc9ffe458e6d4d556869fae7d 100644 (file)
@@ -7,11 +7,15 @@ namespace Friendica\Worker;
 
 use Friendica\Core\Config;
 use Friendica\Core\Update;
+use Friendica\DI;
 
 class DBUpdate
 {
        public static function execute()
        {
-               Update::run();
+               // Just in case the last update wasn't failed
+               if (Config::get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
+                       Update::run(DI::app()->getBasePath());
+               }
        }
 }