X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=9e7edd5a75ccecd519b0cddeffcb241980b268d7;hb=f875fdc7a9cd2b879598a1e0ac0cb73456e4e809;hp=60a9a8e56df000180fe88721f2cfc514f294b74b;hpb=2b921a8064ea14cd554f03e5f561eb98e79a9246;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 60a9a8e..9e7edd5 100644 --- a/plugins/function.select_nat.php +++ b/plugins/function.select_nat.php @@ -21,7 +21,7 @@ function select_nat($valeur, $pad=false) { - $sql = "SELECT a2 AS id,IF(nat='',pays,nat) AS text FROM geoloc_pays ORDER BY text"; + $sql = "SELECT a2 AS id, IF(nat='', pays, nat) AS text FROM geoloc_pays WHERE nat IS NOT NULL ORDER BY text"; $res = XDB::iterRow($sql); $sel = ' selected="selected"';