mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
variable_name 설정 값이 0일 경우 설정을 null 으로 저장하도록 추가
This commit is contained in:
parent
41c1c18002
commit
f1ff02705e
1 changed files with 9 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
'use_sms',
|
||||
'variable_name',
|
||||
);
|
||||
|
||||
|
||||
foreach($config_vars as $val)
|
||||
{
|
||||
if($obj->{$val})
|
||||
|
|
@ -37,7 +37,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$config->{$val} = $obj->{$val};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($obj->disp_act == 'dispNcenterliteAdminConfig')
|
||||
{
|
||||
if (!$obj->use)
|
||||
|
|
@ -45,7 +45,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$config->use = array();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($obj->disp_act == 'dispNcenterliteAdminAdvancedconfig')
|
||||
{
|
||||
if (!$config->mention_suffixes)
|
||||
|
|
@ -56,6 +56,11 @@ class ncenterliteAdminController extends ncenterlite
|
|||
{
|
||||
$config->mention_suffixes = array_map('trim', explode(',', $config->mention_suffixes));
|
||||
}
|
||||
|
||||
if($obj->variable_name === '0')
|
||||
{
|
||||
$config->variable_name = null;
|
||||
}
|
||||
}
|
||||
|
||||
if ($obj->disp_act == 'dispNcenterliteAdminSeletedmid')
|
||||
|
|
@ -157,7 +162,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
{
|
||||
$this->setMessage('ncenterlite_message_delete_notification_all');
|
||||
}
|
||||
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
|
||||
{
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminList');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue