diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 48d585020..4d32052fe 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -1069,7 +1069,7 @@ function SM($name='', $tablePrefix='tab_') //判断是否有子站点表格 function is_subsiteTable($tableName) { - if(in_array($tableName,C('SUBSITE_TABLE')) && IS_SUBSITE){ + if(IS_SUBSITE && in_array($tableName,C('SUBSITE_TABLE'))){ return true; } return false;