diff --git a/ajax_dataload.php b/ajax_dataload.php index 704c3b0cf..6e4bfd3dc 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -78,7 +78,7 @@ if (!empty($query)) { // Allineamento delle righe $align = []; - $row = $rows[0] ?: []; + $row = isset($rows[0]) ? $rows[0] : []; foreach ($row as $field => $value) { $value = trim($value); diff --git a/ajax_select.php b/ajax_select.php index 166fc9e29..ea0f20a45 100755 --- a/ajax_select.php +++ b/ajax_select.php @@ -27,7 +27,7 @@ if (!isset($resource)) { // Opzioni di selezione sugli elementi $options = filter('options') ?: []; - $options_compatibility = $_SESSION['superselect'] ?: []; + $options_compatibility = session_get('superselect', []); $options = array_merge($options_compatibility, $options); // Preselezione su $elements dichiarato da file precedente diff --git a/include/manager.php b/include/manager.php index d5075fdce..038bd776b 100755 --- a/include/manager.php +++ b/include/manager.php @@ -176,7 +176,7 @@ if (!empty($type) && $type != 'menu' && $type != 'custom') { foreach ($bulk as $key => $value) { $text = is_array($value) ? $value['text'] : $value; - $data = is_array($value) ? $value['data'] : []; + $data = is_array($value['data']) ? $value['data'] : []; $extra = []; foreach ($data as $k => $v) { $extra[] = 'data-'.$k.'="'.prepareToField(\HTMLBuilder\HTMLBuilder::replace($v)).'"'; diff --git a/modules/anagrafiche/edit.php b/modules/anagrafiche/edit.php index e0f3faac7..83a5f9821 100755 --- a/modules/anagrafiche/edit.php +++ b/modules/anagrafiche/edit.php @@ -47,6 +47,7 @@ if (!$is_cliente) { } } +$nazione_anagrafica = $anagrafica->sedeLegale->nazione; ?>