N°4764 Remove iTop version from webservices/status.php

This commit is contained in:
Stephen Abello
2022-02-25 10:08:43 +01:00
parent 2e08cff9ee
commit 3890b1a020

View File

@@ -9,12 +9,12 @@ use Combodo\iTop\Application\Status\Status;
try
{
new Status();
$aResult = ['status' => STATUS_RUNNING, 'code' => RestResult::OK, 'message' => '', 'product' => ITOP_APPLICATION, 'version' => ITOP_VERSION];
$aResult = ['status' => STATUS_RUNNING, 'code' => RestResult::OK, 'message' => ''];
}
catch (Exception $e)
{
$iCode = (defined('\RestResult::INTERNAL_ERROR')) ? RestResult::INTERNAL_ERROR : 100;
$aResult = ['status' => STATUS_ERROR, 'code' => $iCode, 'message' => $e->getMessage(), 'product' => ITOP_APPLICATION, 'version' => ITOP_VERSION];
$aResult = ['status' => STATUS_ERROR, 'code' => $iCode, 'message' => $e->getMessage()];
http_response_code(500);
}