mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #2126 show more descriptive message if member mid is already used
This commit is contained in:
parent
fbfbaa48a5
commit
f0f414db1c
4 changed files with 39 additions and 28 deletions
|
|
@ -257,13 +257,9 @@ class MemberAdminController extends Member
|
|||
return new BaseObject(-1, 'msg_limit_mid');
|
||||
}
|
||||
|
||||
if ($config->mid)
|
||||
if (!empty($config->mid) && $this->checkMid($config->mid) == 1)
|
||||
{
|
||||
$module_info = ModuleModel::getModuleInfoByMid($config->mid);
|
||||
if (!$module_info || $module_info->module !== $this->module)
|
||||
{
|
||||
$module_info = null;
|
||||
}
|
||||
$module_info = \ModuleModel::getModuleInfoByMid($config->mid);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue