mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 16:59:55 +09:00
Fix deprecations in PHP 8.5 #2639
This commit is contained in:
parent
94a5b40435
commit
d6b7cb52b8
3 changed files with 13 additions and 4 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue