function declarer_champs_extras($champs, $tables){ // ajoutons les champs un par un foreach ($champs as $c){ $table = table_objet_sql($c->table); if (isset($tables[$table]) and $c->champ and $c->sql) { $tables[$table]['field'][$c->champ] = $c->sql; } } return $tables; }