Skip to content
Extraits de code Groupes Projets
Valider 5d86e6b2 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

Éviter des notices PHP

parent e7bc12a5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -313,6 +313,7 @@ function recuperer_lapage($url, $trans = false, $get = 'GET', $taille_max = 1048
function recuperer_body($f, $taille_max = 1048576, $fichier = ''){
$taille = 0;
$result = '';
$fp = false;
if ($fichier){
$fp = spip_fopen_lock($fichier, 'w', LOCK_EX);
if (!$fp)
......
......@@ -197,14 +197,19 @@ function inc_recherche_to_array_dist($recherche, $options = array()) {
$results = array();
if (!isset($results[$id]))
$results[$id] = array();
if ($joint['score'])
if (isset($joint['score']) and $joint['score']) {
$results[$id]['score'] += $joint['score'];
if ($joint['champs'])
foreach($joint['champs'] as $c => $val)
$results[$id]['champs'][$table_liee.'.'.$c] = $val;
if ($joint['matches'])
foreach($joint['matches'] as $c => $val)
$results[$id]['matches'][$table_liee.'.'.$c] = $val;
}
if (isset($joint['champs']) and $joint['champs']) {
foreach($joint['champs'] as $c => $val) {
$results[$id]['champs'][$table_liee.'.'.$c] = $val;
}
}
if (isset($joint['matches']) and $joint['matches']) {
foreach($joint['matches'] as $c => $val) {
$results[$id]['matches'][$table_liee.'.'.$c] = $val;
}
}
}
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter