Fix fatal error when some important variables contain non-scalar values

This commit is contained in:
Kijin Sung 2025-03-08 14:29:25 +09:00
parent 7fce9fcc39
commit 83a42081fa
2 changed files with 7 additions and 7 deletions

View file

@ -105,7 +105,7 @@ class HTMLDisplayHandler
'dispPageAdminMobileContentModify' => true,
'dispPageAdminMobileContent' => true,
);
$current_act = Context::get('act') ?? '';
$current_act = strval(Context::get('act'));
if(Context::get('module') != 'admin' && strpos($current_act, 'Admin') !== false && !isset($x_exclude_actions[$current_act]))
{
$output = '<div class="x">' . $output . '</div>';