Fix bug with non-existent mid

* Use is_null instead of is_bool to check module
This commit is contained in:
Chanyoung Oh 2021-02-16 14:33:10 +00:00 committed by GitHub
parent 400bbeeb6a
commit b483992c83

View file

@ -111,7 +111,7 @@ class documentView extends document
if(!is_null($target_mid)) {
// if target_mid is provided
$module_info = ModuleModel::getModuleInfoByMid($target_mid);
if(!is_bool($module_info)) {
if(!is_null($module_info)) {
$module_srl = $module_info->module_srl;
}
}