mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1372 block dispBoardUpdateLog if document_srl is missing or invalid
This commit is contained in:
parent
750045d095
commit
dd7f766ff5
1 changed files with 9 additions and 0 deletions
|
|
@ -1252,8 +1252,17 @@ class boardView extends board
|
|||
{
|
||||
throw new Rhymix\Framework\Exceptions\NotPermitted;
|
||||
}
|
||||
if(!$document_srl)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
$updatelog = $oDocumentModel->getDocumentUpdateLog($document_srl);
|
||||
if(!$updatelog->toBool())
|
||||
{
|
||||
return $updatelog;
|
||||
}
|
||||
|
||||
Context::set('total_count', $updatelog->page_navigation->total_count);
|
||||
Context::set('total_page', $updatelog->page_navigation->total_page);
|
||||
Context::set('page', $updatelog->page);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue