mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
Fix undefined variables in article page
This commit is contained in:
parent
6928abbe2c
commit
861135bd6c
4 changed files with 8 additions and 12 deletions
|
|
@ -143,10 +143,8 @@ class PageView extends Page
|
|||
{
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument(0);
|
||||
|
||||
if($this->module_info->document_srl)
|
||||
$oDocument = DocumentModel::getDocument(0);
|
||||
if($this->module_info->document_srl ?? 0)
|
||||
{
|
||||
$document_srl = $this->module_info->document_srl;
|
||||
$oDocument->setDocument($document_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue