X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=e17b738fae2fe9e60292a2f97b1a143ae20b11ba;hb=1f894f6db322b5143bb35146661b7c55a524abb1;hp=bc0401c8dff173498f6f25ef30d8b507bb36b9ce;hpb=a7c29df3b9bf8f3c3b23fec0f1d2feb814cb61fe;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index bc0401c..e17b738 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"';