Fix warning error the Illegal string offset 'web'

This commit is contained in:
BJRambo 2016-11-22 07:24:45 +09:00
parent 44dfde6060
commit 3bb5a03cb1

View file

@ -24,12 +24,11 @@ class ncenterliteModel extends ncenterlite
{
if(count($config->use) && !is_array(array_first($config->use)))
{
$config->use['mention']['web'] = $config->use['mention'];
$config->use['comment']['web'] = $config->use['comment'];
$config->use['comment_comment']['web'] = $config->use['comment_comment'];
$config->use['vote']['web'] = $config->use['vote'];
$config->use['message']['web'] = $config->use['message'];
$config->use['admin_content']['web'] = $config->use['admin_content'];
foreach($config->use as $key => $value)
{
$config->use[$key] = array();
$config->use[$key]['web'] = $value;
}
getController('module')->insertModuleConfig('ncenterlite', $config);
}
}