Fix possible invalid source variable

This commit is contained in:
Philipp 2021-12-14 10:18:47 +01:00
parent 3c85c92070
commit 1ed495738b
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View 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, // 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 // 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 && 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')); DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
} }