[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / prive / squelettes / contenu / recherche_fonctions.php
index 7f4ad57..27975d9 100644 (file)
@@ -1,17 +1,21 @@
 <?php
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 include_spip('inc/rechercher');
 include_spip('base/abstract_sql');
 
-function inclure_liste_recherche_par_id($table,$id,$statut,$env){
-       if (is_string($env))
+function inclure_liste_recherche_par_id($table, $id, $statut, $env) {
+       if (is_string($env)) {
                $env = unserialize($env);
-       $env[id_table_objet($table)]=$id;
-       if ($statut)
+       }
+       $env[id_table_objet($table)] = $id;
+       if ($statut) {
                $env['statut'] = $statut;
+       }
        unset($env['recherche']);
-       return recuperer_fond("prive/objets/liste/$table",$env);
+
+       return recuperer_fond("prive/objets/liste/$table", $env);
 }
-?>
\ No newline at end of file