Browse Source

warnings --

pull/34/head
b_b 7 months ago
parent
commit
172b6b22fb
  1. 6
      gis_fonctions.php

6
gis_fonctions.php

@ -552,10 +552,10 @@ function gis_static_map($id_gis = null, $width, $height, $maptype = false, $zoom
$gis = sql_fetsel('lat,lon,zoom', 'spip_gis', 'id_gis=' . intval($id_gis));
}
$zoom = $zoom ? $zoom : $gis['zoom'];
$zoom = $zoom ?? $gis['zoom'];
$lat = $gis['lat'] ? $gis['lat'] : $lat;
$lon = $gis['lon'] ? $gis['lon'] : $lon;
$lat = $gis['lat'] ?? $lat;
$lon = $gis['lon'] ?? $lon;
if (intval($id_gis) and !$markers) {
$markers_[] = ['lat' => $lat, 'lon' => $lon];

Loading…
Cancel
Save