Skip to content

Commit

Permalink
修改两处对@的错误使用,改用??
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvshujun0918 committed Mar 5, 2024
1 parent 93c7678 commit b73bd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/fun/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function pk_comment_callback($comment, $args, $depth)
$is_author = $authordata->ID == get_current_user_id();
if ($comment->comment_parent == 0) {
$pccci_key = 'pk_comment_callback_cur_id';
$pccci = @$GLOBALS[$pccci_key];
$pccci = $GLOBALS[$pccci_key] ?? '';
if (!empty($pccci)) {
echo '</div>';
}
Expand Down
2 changes: 1 addition & 1 deletion inc/fun/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ function pk_get_req_data(array $model)

function pk_get_ip_region_str($ip)
{
$ip2_instance = @$GLOBALS['ip2_region'];
$ip2_instance = $GLOBALS['ip2_region'] ?? false;
if (!$ip2_instance) {
$ip2_instance = new \Ip2Region();
$GLOBALS['ip2_region'] = $ip2_instance;
Expand Down

0 comments on commit b73bd31

Please sign in to comment.