From 1ed495738bdacaa9989f9c71f9b1db9cbfbd0d02 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 14 Dec 2021 10:18:47 +0100 Subject: [PATCH] Fix possible invalid source variable --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index 9570566b0d..1e246dfeef 100644 --- a/update.php +++ b/update.php @@ -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')); }