summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-27 22:40:29 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-27 22:40:29 +1100
commit49e9103daffa0a7289b0e342040fed77eda63770 (patch)
tree32bbda7728c5cb3b14a4375b87d434db28f9d9ed
parent19187b6205b826e48f1bd2e61a5c24df879b9c6a (diff)
Fixed Javascript bug with lengthy ban times (several years)
-rw-r--r--inc/functions.php2
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");