mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
commit
2f95a67765
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class acp_ranks
|
||||||
}
|
}
|
||||||
$rank_title = utf8_normalize_nfc(request_var('title', '', true));
|
$rank_title = utf8_normalize_nfc(request_var('title', '', true));
|
||||||
$special_rank = request_var('special_rank', 0);
|
$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', '');
|
$rank_image = request_var('rank_image', '');
|
||||||
|
|
||||||
// The rank image has to be a jpg, gif or png
|
// The rank image has to be a jpg, gif or png
|
||||||
|
|
Loading…
Add table
Reference in a new issue