X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=9e7edd5a75ccecd519b0cddeffcb241980b268d7;hb=cf81c359b80ad4280a0b3719e0a32c8adba2549d;hp=60a9a8e56df000180fe88721f2cfc514f294b74b;hpb=f497128a7c26c25a64e05453ea479520149e2cb7;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"';