diff --git a/Model/Config/System/ConnectionRepository.php b/Model/Config/System/ConnectionRepository.php index cdc6f8e..b3459e3 100644 --- a/Model/Config/System/ConnectionRepository.php +++ b/Model/Config/System/ConnectionRepository.php @@ -114,11 +114,8 @@ private function getCacheEncryptionKey(?int $storeId = null): ?string { $path = self::XML_PATH_CACHE_ENCRYPTION_KEY; $value = $this->getStoreValue($path, $storeId); - if (is_string($value)) { - if ($value) { - return $this->encryptor->decrypt($value); - } - return ''; + if (!empty($value)) { + return $this->encryptor->decrypt($value); } return null; }