rework XOrgDB -> XDB (shorter, easier to use).
[platal.git] / plugins / function.select_db_table.php
index 47103f3..4276fa8 100644 (file)
@@ -23,7 +23,7 @@
 function select_options($table,$valeur,$champ="text",$pad=false,$where="") {
     global $globals;
     $sql = "SELECT id,$champ FROM $table $where ORDER BY $champ";
-    $res = $globals->xdb->iterRow($sql);
+    $res = XDB::iterRow($sql);
     $sel = ' selected="selected"';
 
     // on ajoute une entree vide si $pad est vrai