diff --git a/ics.php b/ics.php index af776e5..c62b8bd 100644 --- a/ics.php +++ b/ics.php @@ -94,7 +94,11 @@ function showresult() if (xhr.status == 200) { var params = new URLSearchParams(window.location.search); - var recent = parseInt(params.get("recent")) || 7; + var recent = parseInt(params.get("recent")); + if (isNaN(recent)) + { + recent = 7; + } var html = "
En gras: modifié les " + recent + " derniers jours
"; var o = ics2json(xhr.responseText);