X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=813cb09f999320c76c14c2a477cc4b4954acbea6;hb=8a7fab54e8236fbe382d382d13a9676bd555e89e;hp=7c1b39ef7cd57b0a3234222a62fe9be57a52d687;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 7c1b39e..813cb09 100644 --- a/plugins/function.select_nat.php +++ b/plugins/function.select_nat.php @@ -21,9 +21,8 @@ function select_nat($valeur,$pad=false) { - global $globals; $sql = "SELECT a2 AS id,IF(nat='',pays,nat) AS text FROM geoloc_pays ORDER BY text"; - $res = $globals->xdb->iterRow($sql); + $res = XDB::iterRow($sql); $sel = ' selected="selected"'; // on ajoute une entree vide si $pad est vrai