]> git.mxchange.org Git - friendica.git/commitdiff
Fix possible invalid source variable
authorPhilipp <admin@philipp.info>
Tue, 14 Dec 2021 09:18:47 +0000 (10:18 +0100)
committerPhilipp <admin@philipp.info>
Tue, 14 Dec 2021 09:18:47 +0000 (10:18 +0100)
update.php

index 9570566b0ddf966562b6a1881782cd08c4c18adc..1e246dfeef78e1b78a7c983d664eb8242d96bfdf 100644 (file)
@@ -1079,7 +1079,7 @@ 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) {
+               $cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC) {
                 DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
        }