par
two3d » 19 nov. 2018, 11:45
Merci, j'ai résolu mon problème:
Ce bug serait apparemment solutionné dans le version 4.6.5 de pMA, j'ai la 4.6.4
/*if ($length != '' && ! preg_match($pattern, $type)) {
$query .= '(' . intval($length) . ')';
}*/
if ($length != '' && ! preg_match($pattern, $type)) {
$lengthFix = str_replace(",", ".", $length);
if($lengthFix != $length){
$modified = true;
}
if(is_numeric($lengthFix)){
if($modified){
$length = str_replace(".", ",", $lengthFix);
}
$query .= '(' . $length . ')';
}
}
Merci, j'ai résolu mon problème:
[quote]MyTheValentinus a commenté on 23 Aug 2016
Bonjour,
J'ai le correctif temporaire avec ce code dans librairies / Tables.php, ligne 402.
https://gist.github.com/MyTheValentinus/8f121e0742caedc05058c3ed9c6d6ac4[/quote]
Ce bug serait apparemment solutionné dans le version 4.6.5 de pMA, j'ai la 4.6.4
[PHP] /*if ($length != '' && ! preg_match($pattern, $type)) {
$query .= '(' . intval($length) . ')';
}*/
if ($length != '' && ! preg_match($pattern, $type)) {
$lengthFix = str_replace(",", ".", $length);
if($lengthFix != $length){
$modified = true;
}
if(is_numeric($lengthFix)){
if($modified){
$length = str_replace(".", ",", $lengthFix);
}
$query .= '(' . $length . ')';
}
}[/PHP]