diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 22:40:29 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 22:40:29 +1100 |
| commit | 49e9103daffa0a7289b0e342040fed77eda63770 (patch) | |
| tree | 32bbda7728c5cb3b14a4375b87d434db28f9d9ed /inc/functions.php | |
| parent | 19187b6205b826e48f1bd2e61a5c24df879b9c6a (diff) | |
Fixed Javascript bug with lengthy ban times (several years)
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index aa9db4a7..c8877b59 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -248,7 +248,7 @@ } else if (diff < 60*60*24*365) { return (num = Math.round(diff/(60*60*24*7))) + " week" + (num == 1 ? "" : "s"); } else { - return (num = Math.round(diff/(60*60*365))) + " year" + (num == 1 ? "" : "s"); + return (num = Math.round(diff/(60*60*24*365))) + " year" + (num == 1 ? "" : "s"); } } var countdown = document.getElementById("countdown"); |
