#12341 agent version when string have build

This commit is contained in:
Jonathan 2023-11-30 09:38:12 +01:00
parent 1fc2c432e5
commit bac9d4b7a6
1 changed files with 5 additions and 1 deletions

View File

@ -1386,7 +1386,11 @@ if ($id_agente) {
if (strpos($agent['agent_version'], '(')) {
$agent_version = (int) explode('.', explode('(', $agent['agent_version'])[0])[2];
} else {
$agent_version = $agent['agent_version'];
if (strpos($agent['agent_version'], 'build')) {
$agent_version = (int) explode('.', explode('build', $agent['agent_version'])[0])[2];
} else {
$agent_version = $agent['agent_version'];
}
}
}