diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index 9cd6a20..bb7b12d 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -19,11 +19,15 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){ id = "$id_objet"; id = parseInt(id); if (id > 0 && id < 9999999999) { - app.rechargerJson(id); + if (typeof app !== 'undefined') { + app.rechargerJson(id); + } $.modalboxclose(); } if (id === 9999999999) { - app.rechargerJson(); + if (typeof app !== 'undefined') { + app.rechargerJson(id); + } $.modalboxclose(); } delete id;