diff --git a/getData.php b/getData.php index 68b0cf2..66ecc92 100644 --- a/getData.php +++ b/getData.php @@ -124,15 +124,15 @@ if (isset($data['responses']) && is_array($data['responses'])) { 'startDate' => $startDateFormatted, 'endDate' => $endDateFormatted, 'status' => $response['values']['status'], - 'ipAddress' => $response['values']['ipAddress'], + 'ipAddress' => $response['values']['ipAddress'] ?? '0.0.0.0', 'progress' => $response['values']['progress'], 'duration' => $response['values']['duration'], 'finished' => $response['values']['finished'], 'recordedDate' => $recordedDateFormatted, - 'locationLatitude' => $response['values']['locationLatitude'], - 'locationLongitude' => $response['values']['locationLongitude'], + 'locationLatitude' => $response['values']['locationLatitude'] ?? '0.0', + 'locationLongitude' => $response['values']['locationLongitude'] ?? '0.0', 'distributionChannel' => $response['values']['distributionChannel'], - 'userLanguage' => $response['values']['userLanguage'] + 'userLanguage' => $response['values']['userLanguage'] ?? 'en' ];