removed debug info

This commit is contained in:
tracer 2022-01-29 16:20:55 +01:00
parent 1fb840206c
commit 073d9cae9e

View File

@ -63,8 +63,9 @@ class CheckController
case 401:
$result = 'Missing or wrong API Key';
break;
case 404:
$result = '404 Not Found';
default:
echo __FILE__, __LINE__, $resultJSON;
$result = 'Unhandled error: ' . $httpResponse;
}
} else {
@ -73,7 +74,7 @@ class CheckController
}
curl_close(handle: $curl);
return [
'error' => true,
'error' => $error,
'data' => $result,
'header' => $httpResponse ?? ''
];