mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
#385 잘못된 mid로 인한 문제 수정
This commit is contained in:
parent
3052a858d8
commit
fff3e03ea7
1 changed files with 3 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleInfoByMid($mid, $site_srl = 0, $columnList = array())
|
||||
{
|
||||
if(!$mid)
|
||||
if(!$mid || ($mid && !preg_match("/^[a-z][a-z0-9_]+$/i", $mid)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -1369,7 +1369,8 @@ class moduleModel extends module
|
|||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
$config = unserialize($output->data->config);
|
||||
if($output->data->config) $config = unserialize($output->data->config);
|
||||
else $config = new stdClass;
|
||||
|
||||
//insert in cache
|
||||
if($oCacheHandler->isSupport())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue