mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Only add module_title and mid if they are empty
This commit is contained in:
parent
99f60cc16e
commit
dcd6d896c2
1 changed files with 8 additions and 10 deletions
|
|
@ -602,15 +602,10 @@ class boardView extends board
|
||||||
foreach ($document_list as $document)
|
foreach ($document_list as $document)
|
||||||
{
|
{
|
||||||
$module_srl = $document->get('module_srl');
|
$module_srl = $document->get('module_srl');
|
||||||
if (isset($map[$module_srl]))
|
if ($document->get('mid') === null)
|
||||||
{
|
{
|
||||||
$document->add('module_title', $map[$module_srl]->browser_title);
|
$document->add('module_title', isset($map[$module_srl]) ? $map[$module_srl]->browser_title : $this->module_info->browser_title);
|
||||||
$document->add('mid', $map[$module_srl]->mid);
|
$document->add('mid', isset($map[$module_srl]) ? $map[$module_srl]->mid : $this->module_info->mid);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$document->add('module_title', $this->module_info->browser_title);
|
|
||||||
$document->add('mid', $this->module_info->mid);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -618,8 +613,11 @@ class boardView extends board
|
||||||
{
|
{
|
||||||
foreach ($document_list as $document)
|
foreach ($document_list as $document)
|
||||||
{
|
{
|
||||||
$document->add('module_title', $this->module_info->browser_title);
|
if ($document->get('mid') === null)
|
||||||
$document->add('mid', $this->module_info->mid);
|
{
|
||||||
|
$document->add('module_title', $this->module_info->browser_title);
|
||||||
|
$document->add('mid', $this->module_info->mid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue