fix: si on appelle cette fonction comme un filtre, $num peut etre un entier, on gere donc ce cas
This commit is contained in:
parent
b1f4e0e1e3
commit
922069a8dc
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ EOJS;
|
|||
}
|
||||
|
||||
function gamutable_generer_js($id_objet, $num){
|
||||
if (intval($num) === 2) {
|
||||
$num = "_deux";
|
||||
} else {
|
||||
$num = null;
|
||||
}
|
||||
$html = <<<EOJS
|
||||
id = "$id_objet";
|
||||
if (id === 'maj' || !id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue