#12341 agent version when string have build
This commit is contained in:
parent
1fc2c432e5
commit
bac9d4b7a6
|
@ -1386,7 +1386,11 @@ if ($id_agente) {
|
||||||
if (strpos($agent['agent_version'], '(')) {
|
if (strpos($agent['agent_version'], '(')) {
|
||||||
$agent_version = (int) explode('.', explode('(', $agent['agent_version'])[0])[2];
|
$agent_version = (int) explode('.', explode('(', $agent['agent_version'])[0])[2];
|
||||||
} else {
|
} 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'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue