projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/master' into fusionax
[platal.git]
/
plugins
/
function.select_nat.php
diff --git
a/plugins/function.select_nat.php
b/plugins/function.select_nat.php
index
60a9a8e
..
0d39a7b
100644
(file)
--- a/
plugins/function.select_nat.php
+++ b/
plugins/function.select_nat.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,7
+21,7
@@
function select_nat($valeur, $pad=false) {
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"';
$res = XDB::iterRow($sql);
$sel = ' selected="selected"';