Fix incorrect detection of old format user config in ncenterlite module

This commit is contained in:
Kijin Sung 2020-12-19 21:49:54 +09:00
parent 6fd49c3bd1
commit 6754303189

View file

@ -212,11 +212,11 @@ class ncenterliteModel extends ncenterlite
foreach (self::getNotifyTypes() as $type => $srl)
{
$disabled_list = $output->data->{$type . '_notify'} ?? '';
if ($disabled_list === 'N' || strlen($disabled_list) === 1)
if ($disabled_list === 'N')
{
$config->{$type} = [];
}
elseif ($disabled_list === '')
elseif ($disabled_list === 'Y' || $disabled_list === '')
{
$config->{$type} = ['web', 'mail', 'sms', 'push'];
}