keep some default value be integer 2

This commit is contained in:
xiaomlove
2021-01-06 02:19:03 +08:00
parent 28ab56fe70
commit 38dae7c068
25 changed files with 100 additions and 100 deletions

View File

@@ -199,8 +199,8 @@ function check_client($peer_id, $agent, &$agent_familyid)
{
if($row_allowed_ua['peer_id_matchtype'] == 'dec')
{
$match_target[$i+1] = $match_target[$i+1] ?? 0;
$match_bench[$i+1] = $match_bench[$i+1] ?? 0;
$match_target[$i+1] = intval($match_target[$i+1] ?? 0);
$match_bench[$i+1] = intval($match_bench[$i+1] ?? 0);
}
else if($row_allowed_ua['peer_id_matchtype'] == 'hex')
{
@@ -249,8 +249,8 @@ function check_client($peer_id, $agent, &$agent_familyid)
{
if($row_allowed_ua['agent_matchtype'] == 'dec')
{
$match_target[$i+1] = $match_target[$i+1] ?? 0;
$match_bench[$i+1] = $match_bench[$i+1] ?? 0;
$match_target[$i+1] = intval($match_target[$i+1] ?? 0);
$match_bench[$i+1] = intval($match_bench[$i+1] ?? 0);
}
else if($row_allowed_ua['agent_matchtype'] == 'hex')
{