]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Show month/halfyear usage
[friendica.git] / update.php
index 82351a7b2a732a259ae9daa35d03819bf2cf4e57..7b5f6778be7df92807978de0e88126016fa10e9f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -1078,10 +1078,12 @@ 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;
-}
\ No newline at end of file
+}