From 669b21d9d4829b05d9fba85fe36b95538cb36657 Mon Sep 17 00:00:00 2001 From: Fabio Lovato Date: Tue, 20 Feb 2018 14:57:24 +0100 Subject: [PATCH] Spostato "Nessuna zona" fisso come prima voce --- modules/dashboard/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index ee01917a6..ed0c3be45 100644 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -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) {