mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix bug with non-existent mid
* Use is_null instead of is_bool to check module
This commit is contained in:
parent
400bbeeb6a
commit
b483992c83
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue