diff --git a/modules/statistiche/edit.php b/modules/statistiche/edit.php index 1aa05b621..c9e86f3bb 100755 --- a/modules/statistiche/edit.php +++ b/modules/statistiche/edit.php @@ -500,7 +500,7 @@ ORDER BY `ragione_sociale` ASC"); $dataset = ''; -if ($_SESSION['superselect']['idtipiintervento']) { +if (is_array($_SESSION['superselect']['idtipiintervento'])) { $where = '`in_interventi_tecnici`.`id` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')'; } else { $where = '1=1'; @@ -542,12 +542,8 @@ echo '
-
'; -if ($_SESSION['superselect']['idanagrafica']) { - echo ' - {["type": "select", "multiple": "1", "label": "'.tr('Tipi attività').'", "name": "idtipiintervento[]", "ajax-source": "tipiintervento", "value": "'.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).'", "placeholder": "Tutti" ]}'; -} -echo ' +
+ {["type": "select", "multiple": "1", "label": "'.tr('Tipi attività').'", "name": "idtipiintervento[]", "ajax-source": "tipiintervento", "value": "'.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).'", "placeholder": "Tutti" ]}