mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-02 11:43:00 +08:00
优化一下代码,适配php 8
This commit is contained in:
parent
08de5f36d7
commit
c080142af9
@ -685,7 +685,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(array_key_exists("@@||${matches[1]}^", $ARR_WHITE_RULE_BLK_LIST)){
|
||||
if(array_key_exists("@@||{$matches[1]}^", $ARR_WHITE_RULE_BLK_LIST)){
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -695,7 +695,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
|
||||
|
||||
if($v === 1){
|
||||
$wrote_whitelist[$matches[1]] = null;
|
||||
$attached_content .= "@@||${matches[1]}^\n";
|
||||
$attached_content .= "@@||{$matches[1]}^\n";
|
||||
$line_count++;
|
||||
continue;
|
||||
}
|
||||
@ -715,7 +715,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
|
||||
continue;
|
||||
}
|
||||
|
||||
$attached_content .= "@@||${origin_white_rule}^\n";
|
||||
$attached_content .= "@@||{$origin_white_rule}^\n";
|
||||
$line_count++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user