Renato Formato
19 years ago
The condition (strpos($suite[0], "[0-9]") === false)
seems to me to be always true.
Should be (strpos($suite, "[0-9]") === false) or it is dead code.
function phraser_champs($texte,$ligne,$result) {
while (preg_match("/".NOM_DE_CHAMP."/", $texte, $match)) {
$p = strpos($texte, $match[0]);
$suite = substr($texte,$p+strlen($match[0]));
-> if ($match[5] || (strpos($suite[0], "[0-9]") === false)) {
.....
} else {
// faux champ
.....
}
Ciao
Renato
seems to me to be always true.
Should be (strpos($suite, "[0-9]") === false) or it is dead code.
function phraser_champs($texte,$ligne,$result) {
while (preg_match("/".NOM_DE_CHAMP."/", $texte, $match)) {
$p = strpos($texte, $match[0]);
$suite = substr($texte,$p+strlen($match[0]));
-> if ($match[5] || (strpos($suite[0], "[0-9]") === false)) {
.....
} else {
// faux champ
.....
}
Ciao
Renato