projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes an "undefined variable" error in modules/email.php.
[platal.git]
/
plugins
/
function.select_nat.php
diff --git
a/plugins/function.select_nat.php
b/plugins/function.select_nat.php
index
cef2118
..
ebfa2f3
100644
(file)
--- a/
plugins/function.select_nat.php
+++ b/
plugins/function.select_nat.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
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"';
@@
-44,4
+44,5
@@
function smarty_function_select_nat($params, &$smarty) {
return select_nat($params['valeur'], $pad);
}
return select_nat($params['valeur'], $pad);
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
?>