]> git.mxchange.org Git - friendica.git/commitdiff
Update update.php
authorPhilipp <admin+Github@philipp.info>
Tue, 14 Dec 2021 11:36:44 +0000 (12:36 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 11:36:44 +0000 (12:36 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
update.php

index 1e246dfeef78e1b78a7c983d664eb8242d96bfdf..c28590a7373d0ebed5e43caf607dae7d74b0189e 100644 (file)
@@ -1078,9 +1078,11 @@ function update_1446()
 
        // In case the distributed cache driver is the default value, but the current cache driver isn't default,
        // we assume that the distributed cache driver should be the same as the current cache driver
-       if ($distributed_cache_driver_source === \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC &&
-               $cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC) {
-                DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
+       if (
+               $distributed_cache_driver_source === \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC
+               && $cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC
+       ) {
+               DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
        }
 
        return Update::SUCCESS;