mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
Fix incorrect detection of old format user config in ncenterlite module
This commit is contained in:
parent
6fd49c3bd1
commit
6754303189
1 changed files with 2 additions and 2 deletions
|
|
@ -212,11 +212,11 @@ class ncenterliteModel extends ncenterlite
|
||||||
foreach (self::getNotifyTypes() as $type => $srl)
|
foreach (self::getNotifyTypes() as $type => $srl)
|
||||||
{
|
{
|
||||||
$disabled_list = $output->data->{$type . '_notify'} ?? '';
|
$disabled_list = $output->data->{$type . '_notify'} ?? '';
|
||||||
if ($disabled_list === 'N' || strlen($disabled_list) === 1)
|
if ($disabled_list === 'N')
|
||||||
{
|
{
|
||||||
$config->{$type} = [];
|
$config->{$type} = [];
|
||||||
}
|
}
|
||||||
elseif ($disabled_list === '')
|
elseif ($disabled_list === 'Y' || $disabled_list === '')
|
||||||
{
|
{
|
||||||
$config->{$type} = ['web', 'mail', 'sms', 'push'];
|
$config->{$type} = ['web', 'mail', 'sms', 'push'];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue