Spostato "Nessuna zona" fisso come prima voce

This commit is contained in:
Fabio Lovato 2018-02-20 14:57:24 +01:00
parent 6d7b786eab
commit 669b21d9d4
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ $checks = '';
$count = 0;
$total = 0;
$rs = $dbo->fetchArray('(SELECT \'0\' AS id, \'Nessuna zona\' AS descrizione) UNION (SELECT id, descrizione FROM an_zone) ORDER BY descrizione ASC');
$rs = $dbo->fetchArray('(SELECT 0 AS ordine, \'0\' AS id, \'Nessuna zona\' AS descrizione) UNION (SELECT 1 AS ordine, id, descrizione FROM an_zone) ORDER BY ordine, descrizione ASC');
$total = count($rs);
for ($i = 0; $i < count($rs); ++$i) {