mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #2366 inconsistent return format of getModuleSrlByMid() when $assoc = false
This commit is contained in:
parent
5097f40b37
commit
ce21449046
1 changed files with 1 additions and 1 deletions
|
|
@ -634,7 +634,7 @@ class ModuleModel extends Module
|
|||
|
||||
if (count($mid) == 1 && ($first_mid = array_first($mid)) && isset(self::$_mid_map[$first_mid]))
|
||||
{
|
||||
return array($first_mid => self::$_mid_map[$first_mid]);
|
||||
return array($assoc ? $first_mid : 0 => self::$_mid_map[$first_mid]);
|
||||
}
|
||||
|
||||
$args = new stdClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue