mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '2499-Mapas-GIS-dev' into 'develop'
Fixed agent view in public Visual Console See merge request artica/pandorafms!1726
This commit is contained in:
commit
1f808adb27
@ -158,6 +158,10 @@ if ($layers != false) {
|
|||||||
|
|
||||||
foreach ($agentNames as $agentName) {
|
foreach ($agentNames as $agentName) {
|
||||||
$idAgent = agents_get_agent_id($agentName);
|
$idAgent = agents_get_agent_id($agentName);
|
||||||
|
if (!$idAgent) {
|
||||||
|
$idAgent = agents_get_agent_id_by_alias($agentName);
|
||||||
|
$idAgent = (!empty($idAgent)) ? $idAgent[0]['id_agente'] : 0;
|
||||||
|
}
|
||||||
$coords = gis_get_data_last_position_agent($idAgent);
|
$coords = gis_get_data_last_position_agent($idAgent);
|
||||||
|
|
||||||
if ($coords === false) {
|
if ($coords === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user