X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Frecherche_to_array.php;h=14ab04c5326ae2c2d0db8b24db9575a31c30ddab;hp=9b87eebb4b7e6d6d4a5c75912fa3d3f590ba8945;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=d686c3e22e97dd46ef42bcd0f138c65083f8f232 diff --git a/www/ecrire/inc/recherche_to_array.php b/www/ecrire/inc/recherche_to_array.php index 9b87eeb..14ab04c 100644 --- a/www/ecrire/inc/recherche_to_array.php +++ b/www/ecrire/inc/recherche_to_array.php @@ -58,6 +58,14 @@ function inc_recherche_to_array_dist($recherche, $options = array()) { : array(); $_id_table = id_table_objet($table); + + // c'est un pis-aller : ca a peu de chance de marcher, mais mieux quand meme que en conservant la ',' + // (aka ca marche au moins dans certains cas comme avec spip_formulaires_reponses_champs) + if (strpos($_id_table,",")!==false){ + $_id_table = explode(',',$_id_table); + $_id_table = reset($_id_table); + } + $requete['SELECT'][] = "t.".$_id_table; $a = array(); // Recherche fulltext