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:
Rafael Ameijeiras 2022-11-30 15:59:55 +00:00
commit d96eb65b88
1 changed files with 2 additions and 2 deletions

View File

@ -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',