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

@ -185,7 +185,7 @@ class BaseObject
{
$type = $this->get('message_type');
$typeList = array('error' => 1, 'info' => 1, 'update' => 1);
if(!isset($typeList[$type]))
if (!isset($type) || !isset($typeList[$type]))
{
$type = $this->getError() ? 'error' : 'info';
}