Bonjour,
J'ai cette notice et ce warning pour cette ligne 152
C'est dans une fonction02-Feb-2021 11:00:28 UTC] PHP Warning: Invalid argument supplied for foreach() in /web/vhosts/f.php on line 152
[02-Feb-2021 11:00:28 UTC] PHP Notice: Undefined offset: 0 in /srv/data/web/vhosts/f.php on line 152
Merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <?php foreach($matches[0] as $match) // ligne 152 { if (!$match = trim($match)) continue; if ($snippet) $snippet .= "$match.. "; else $snippet = "$match"; if (mb_strlen($snippet.htmlspecialchars($match[0], ENT_QUOTES, 'UTF-8').".. ") > $strlen_max) break; } ?>
Yule
Partager