Merge branch 'ent-9952-500-al-editar-un-mapa-gis-php8' into 'develop'
Ent 9952 500 al editar un mapa gis php8 See merge request artica/pandorafms!5305
This commit is contained in:
commit
d96eb65b88
|
@ -1100,7 +1100,7 @@ function gis_update_map(
|
|||
}
|
||||
|
||||
if (array_key_exists('layer_agent_list', $layer)) {
|
||||
if (count($layer['layer_agent_list']) > 0) {
|
||||
if (empty($layer['layer_agent_list']) === false && count($layer['layer_agent_list']) > 0) {
|
||||
foreach ($layer['layer_agent_list'] as $agent) {
|
||||
$id = db_process_sql_insert(
|
||||
'tgis_map_layer_has_tagente',
|
||||
|
@ -1114,7 +1114,7 @@ function gis_update_map(
|
|||
}
|
||||
|
||||
if (array_key_exists('layer_group_list', $layer)) {
|
||||
if (count($layer['layer_group_list']) > 0) {
|
||||
if (empty($layer['layer_group_list']) === false && count($layer['layer_group_list']) > 0) {
|
||||
foreach ($layer['layer_group_list'] as $group) {
|
||||
$id = db_process_sql_insert(
|
||||
'tgis_map_layer_groups',
|
||||
|
|
Loading…
Reference in New Issue