Cap required release candidates needed
This commit is contained in:
parent
92555c7c47
commit
c049d942e9
1 changed files with 12 additions and 3 deletions
|
@ -342,7 +342,16 @@ $page->navigation();
|
|||
WHERE ' . $user_is_active . ';')
|
||||
->fetch();
|
||||
$count_users = reset($count_users);
|
||||
$count_users_needed = max(1, round($count_users * 0.05, 0));
|
||||
|
||||
$count_users_needed_minimum = 1;
|
||||
$count_users_needed_maximum = 100;
|
||||
$count_users_needed = min(
|
||||
$count_users_needed_maximum,
|
||||
max(
|
||||
$count_users_needed_minimum,
|
||||
round($count_users * 0.05, 0)
|
||||
)
|
||||
);
|
||||
|
||||
$count_users_rc = $database
|
||||
->query('SELECT COUNT(`id`)
|
||||
|
|
Loading…
Reference in a new issue