$tab_favoris_user_sans_cibles = $favoris_sans_cibles->loadList($whereFavorisSansCibles); unset($whereFavorisSansCibles["user_id"]); $function_id = $user->loadRefFunction()->_id; $whereFavoris["function_id"] = " = '{$function_id}'"; $tab_favoris_function_sans_cibles = $favoris_sans_cibles->loadList($whereFavorisSansCibles); unset($whereFavorisSansCibles["function_id"]); $group_id = $user->loadRefFunction()->group_id; $whereFavorisSansCibles["group_id"] = " = '{$group_id}'"; $tab_favoris_group_sans_cibles = $favoris->loadList($whereFavorisSansCibles); $tab_favoris += $tab_favoris_user_sans_cibles + $tab_favoris_function_sans_cibles + $tab_favoris_group_sans_cibles; } // On effectue la recherche automatique if (isset($tab_favoris)) { try { $search = new CSearch(); $results = $search->searchAuto($tab_favoris, $_ref_object); } catch (Exception $e) { CAppUI::displayAjaxMsg("search-not-connected", UI_MSG_ERROR); mbLog($e->getMessage()); } } // Récupération des rss items pour le marquage pmsi (preuves de recherche PMSI) $rss_items = array(); $items = array(); if ($contexte == "pmsi" && CModule::getActive("atih")) { $rss = new CRSS(); $rss->sejour_id = $sejour_id; $rss->loadMatchingObject(); $rss_items = $rss->loadRefsSearchItems(); foreach ($rss_items as $_items) { $items[] = $_items->search_class . "-" . $_items->search_id;