issue #0001545 : Correction retour tabData

This commit is contained in:
Michael RICOIS 2013-02-14 16:56:01 +00:00
parent 40d88bbd5e
commit c8b13a3d42

View File

@ -1424,10 +1424,10 @@ function GPSEntete($values)
function GPSData($siren, $nic, $values = false)
{
$tab['latitude'] = '';
$tab['longitude'] = '';
$tab['altitude'] = '';
$tab['precis'] = '';
$tabData['latitude'] = '';
$tabData['longitude'] = '';
$tabData['altitude'] = '';
$tabData['precis'] = '';
$iDb = new WDB('sdv1');
$result = $iDb->select(
@ -1448,11 +1448,12 @@ function GPSData($siren, $nic, $values = false)
$etab['adr_ville'],
'France'
);
$tab['latitude'] = $mMap->latitudeDec;
$tab['longitude'] = $mMap->longitudeDec;
$tab['altitude'] = $mMap->altitude;
$tab['precis'] = $mMap->precision;
$tabData['latitude'] = $mMap->latitudeDec;
$tabData['longitude'] = $mMap->longitudeDec;
$tabData['altitude'] = $mMap->altitude;
$tabData['precis'] = $mMap->precision;
}
return $tabData;
}