From 04ef66862cffaea6397e55351a048fa21405b4e3 Mon Sep 17 00:00:00 2001 From: cy_altern Date: Fri, 2 Dec 2022 10:31:22 +0100 Subject: [PATCH] PHP8 : eviter un warning --- corpus_web_fonctions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/corpus_web_fonctions.php b/corpus_web_fonctions.php index 66db591..7ba9e36 100644 --- a/corpus_web_fonctions.php +++ b/corpus_web_fonctions.php @@ -119,6 +119,7 @@ function affiche_ligne($fichier, $num) { $handle = @fopen($fichier, "rb"); if ($handle) { + $num_ligne = 0; while (($buffer = fgets($handle)) !== false) { $num_ligne = $num_ligne + 1; if ($num_ligne == $num) {