From 2a57ae0fe6bd70f83fc84001550c1093229b67d0 Mon Sep 17 00:00:00 2001 From: orin Date: Fri, 3 Nov 2023 17:10:43 +0100 Subject: [PATCH] Add fallback parameters --- shared/requests.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/requests.php b/shared/requests.php index 2207be8..2465f43 100644 --- a/shared/requests.php +++ b/shared/requests.php @@ -311,11 +311,11 @@ function composeFileGetRequest($updateId, $info, $rev = 1, $type = 'Production') //$branch = branchFromBuild($info['checkBuild']); $deviceAttributes = composeDeviceAttributes( - $info['flight'], - $info['ring'], - $info['checkBuild'], - $info['arch'], - $info['sku'], + isset($info['flight']) ? $info['flight'] : 'Active', + isset($info['ring']) ? $info['ring'] : 'RETAIL', + isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1', + isset($info['arch']) ? $info['arch'] : 'amd64', + isset($info['sku']) ? $info['sku'] : 48, $type );