Fix warnings in PHP 8.x

This commit is contained in:
Kijin Sung 2023-07-20 21:38:16 +09:00
parent 4505388e47
commit 78ba527c78
2 changed files with 2 additions and 2 deletions

View file

@ -921,7 +921,7 @@ class Context
{
return $matches[1];
}
}, $string);
}, strval($string));
}
/**

View file

@ -494,7 +494,7 @@ class HTMLDisplayHandler
{
$canonical_url = getFullUrl('', 'mid', $current_module_info->mid, 'page', $page);
}
elseif ($current_module_info->module_srl == $site_module_info->module_srl)
elseif (isset($current_module_info->module_srl) && $current_module_info->module_srl == ($site_module_info->module_srl ?? 0))
{
$canonical_url = getFullUrl('');
}