Browse Source

éviter un Deprecated: Automatic conversion of false to array is deprecated

fix #36
pull/38/head
b_b 6 months ago
parent
commit
46131cdaa9
  1. 3
      gis_pipelines.php

3
gis_pipelines.php

@ -27,7 +27,8 @@ function gis_insert_head_css($flux) {
function gis_insert_head($flux) {
// initialisation des valeurs de config
$config = @unserialize($GLOBALS['meta']['gis']);
include_spip('inc/config');
$config = lire_config('gis', []);
if (!isset($config['layers']) || !is_array($config['layers'])) {
$config['layers'] = ['openstreetmap_mapnik'];
}

Loading…
Cancel
Save