Correction following production release

This commit is contained in:
Michael RICOIS 2013-03-22 13:55:29 +00:00
parent 8ae96edb27
commit 230f7036a1

View File

@ -925,6 +925,12 @@ function rechercheDir(&$formR, $deb, $nbRep, $max)
'erreur' => 'Aucun résultat');
}
/*
file_put_contents('test.log', print_r($formR,1));
file_put_contents('test.log', $sphinx->GetLastError()."\n", FILE_APPEND);
file_put_contents('test.log', 'TEST='.print_r($resSphinx,1), FILE_APPEND);
*/
$requeteDB =
"SELECT
d.nom,
@ -1115,7 +1121,7 @@ function rechercheAct($formR, $deb, $nbRep, $max)
//@todo : Faire correspondre avec la table etablissement
$requette = "SELECT
/*Liens*/
l.PDetention AS Pmin,
l.PDetention AS ActPmin,
l.MajMin,
l.dateEffetLien AS dateLien,
IF(l.dateUpdate>l.dateInsert,l.dateUpdate,l.dateInsert) AS date,
@ -1508,7 +1514,7 @@ function rechercheEnt(&$formR, $deb, $nbRep, $max, $sirenValide = false)
ape_entrep,
(siren>200) AS sirenValide
FROM etablissements
LEFT OUTER JOIN tabPays ON adr_dep = codePaysInsee
LEFT OUTER JOIN tabPays ON codePaysInsee = IF(adr_dep=99,adr_com,null)
WHERE id IN('.
$i = 0;
foreach ($resSphinx['matches'] as $id => $element) {