aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-05-19 10:56:15 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-05-19 10:56:15 +0300
commit9435f16f591bee57ba5838f8acf9a6e3204e3578 (patch)
treecf1ea4a02536758771c275c2c5211b0f9410d4cd
parentd8ed228ddf2f4117a5a8044e9903ef22febdeb4a (diff)
downloadforums-9435f16f591bee57ba5838f8acf9a6e3204e3578.tar
forums-9435f16f591bee57ba5838f8acf9a6e3204e3578.tar.gz
forums-9435f16f591bee57ba5838f8acf9a6e3204e3578.tar.bz2
forums-9435f16f591bee57ba5838f8acf9a6e3204e3578.tar.xz
forums-9435f16f591bee57ba5838f8acf9a6e3204e3578.zip
[ticket/11555] Fix page comparison
Strict comparison should not be used to compare string and number PHPBB3-11555
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index 19fe5ca4d2..2a207e2f35 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -20,7 +20,7 @@ function popup(url, width, height, name) {
function jumpto() {
var page = prompt(jump_page, on_page);
- if (page !== null && !isNaN(page) && page === Math.floor(page) && page > 0) {
+ if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
if (base_url.indexOf('?') === -1) {
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
} else {