Hardening
This commit is contained in:
@@ -47,11 +47,11 @@ if (!empty($media_responses)){$media_responses = json_decode($media_responses,tr
|
||||
$media_responses = $media_responses[0];
|
||||
|
||||
//CALL TO API FOR History
|
||||
$api_url = '/v1/equipments/equipmentID='.$responses->equipmentID.'&type=ServiceReport&history=1';
|
||||
$api_url = '/v2/equipments/equipmentID='.$responses->equipmentID.'&type=ServiceReport&history=1';
|
||||
$history = ioServer($api_url,'');
|
||||
|
||||
//Decode Payload
|
||||
if (!empty($history)){$history = decode_payload($history);}else{$history = null;}
|
||||
if (!empty($history)){$history = json_decode($history);}else{$history = null;}
|
||||
|
||||
//CALL TO API FOR EQUIPMENT DATA
|
||||
$api_url = '/v1/equipment_data/equipmentid='.$responses->equipmentID;
|
||||
|
||||
Reference in New Issue
Block a user