aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-02-20 01:52:33 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-02-20 01:52:33 +0100
commitc3265c913817e5e774d30993c181d70e853b60d4 (patch)
tree03e906efd5165ba95dec6ee3dd83c54e431222b2 /phpBB
parent4b2690f792d330622fd5409ded5f163db1b97bd9 (diff)
downloadforums-c3265c913817e5e774d30993c181d70e853b60d4.tar
forums-c3265c913817e5e774d30993c181d70e853b60d4.tar.gz
forums-c3265c913817e5e774d30993c181d70e853b60d4.tar.bz2
forums-c3265c913817e5e774d30993c181d70e853b60d4.tar.xz
forums-c3265c913817e5e774d30993c181d70e853b60d4.zip
[ticket/10639] Do not allow negative post count as rank's minimum posts
PHPBB3-10639
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_ranks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_ranks.php b/phpBB/includes/acp/acp_ranks.php
index dfd7511427..ea057cd84c 100644
--- a/phpBB/includes/acp/acp_ranks.php
+++ b/phpBB/includes/acp/acp_ranks.php
@@ -52,7 +52,7 @@ class acp_ranks
}
$rank_title = utf8_normalize_nfc(request_var('title', '', true));
$special_rank = request_var('special_rank', 0);
- $min_posts = ($special_rank) ? 0 : request_var('min_posts', 0);
+ $min_posts = ($special_rank) ? 0 : max(0, request_var('min_posts', 0));
$rank_image = request_var('rank_image', '');
// The rank image has to be a jpg, gif or png