diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-02-28 22:28:54 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-02-28 22:28:54 +0100 |
commit | 2f95a67765972c7a9836ec058c89caf469993d15 (patch) | |
tree | 81f8d4e81da07a0eee8ec9950ec76b73e7c04e87 /phpBB/includes | |
parent | f6cf8782c8c1cd99832709e52dc646b54fd041d1 (diff) | |
parent | c3265c913817e5e774d30993c181d70e853b60d4 (diff) | |
download | forums-2f95a67765972c7a9836ec058c89caf469993d15.tar forums-2f95a67765972c7a9836ec058c89caf469993d15.tar.gz forums-2f95a67765972c7a9836ec058c89caf469993d15.tar.bz2 forums-2f95a67765972c7a9836ec058c89caf469993d15.tar.xz forums-2f95a67765972c7a9836ec058c89caf469993d15.zip |
Merge remote-tracking branch 'nickvergessen/ticket/10639' into develop-olympus
* nickvergessen/ticket/10639:
[ticket/10639] Do not allow negative post count as rank's minimum posts
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_ranks.php | 2 |
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 |