Fix deprecations in PHP 8.5 #2639

This commit is contained in:
Kijin Sung 2026-01-01 18:39:20 +09:00
parent 94a5b40435
commit d6b7cb52b8
3 changed files with 13 additions and 4 deletions

View file

@ -10,9 +10,9 @@ if(!defined('__XE__'))
* @brief admin log
*/
$logged_info = Context::get('logged_info');
if(Context::get('is_logged') && $logged_info->is_admin == 'Y' && stripos(Context::get('act'), 'admin') !== false && $called_position == 'before_module_proc')
if ($called_position === 'before_module_proc' && $logged_info->is_admin === 'Y' && stripos(Context::get('act') ?? '', 'admin') !== false)
{
$oAdminloggingController = getController('adminlogging');
$oAdminloggingController = adminloggingController::getInstance();
$oAdminloggingController->insertLog($this->module, $this->act);
}
/* End of file adminlogging.php */