1edad5a36d630a45b3a9ae95f3a871d871ebd2d1
[lhc/web/www.git] / www / plugins / formidable / inc / rechercher_joints_formulaires_reponse_formulaires_reponses_champ.php
1 <?php
2
3 // Securite
4 if (!defined('_ECRIRE_INC_VERSION')) {
5 return;
6 }
7
8 function inc_rechercher_joints_formulaires_reponse_formulaires_reponses_champ_dist(
9 $table,
10 $table_liee,
11 $ids_trouves,
12 $serveur
13 ) {
14
15 $cle_depart = 'id_formulaires_reponse';
16 $cle_arrivee = 'id_formulaires_reponse';
17
18 $s = sql_select(
19 "DISTINCT R.$cle_depart",
20 'spip_formulaires_reponses AS R JOIN spip_formulaires_reponses_champs AS C ON C.id_formulaires_reponse=R.id_formulaires_reponse',
21 sql_in('C.id_formulaires_reponses_champ', $ids_trouves),
22 '',
23 '',
24 '',
25 '',
26 $serveur
27 );
28
29 return array($cle_depart, $cle_arrivee, $s);
30 }