mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Make category_srl and document_srl nullable again #2519
This commit is contained in:
parent
ea1e0ef624
commit
5d1c6dd59a
1 changed files with 2 additions and 2 deletions
|
|
@ -576,7 +576,7 @@ class BoardView extends Board
|
|||
// if the category is enabled, then get the category
|
||||
if($this->module_info->use_category=='Y')
|
||||
{
|
||||
$args->category_srl = (int)Context::get('category');
|
||||
$args->category_srl = (int)Context::get('category') ?: null;
|
||||
}
|
||||
|
||||
// setup the sort index and order index
|
||||
|
|
@ -592,7 +592,7 @@ class BoardView extends Board
|
|||
}
|
||||
|
||||
// set the current page of documents
|
||||
$document_srl = (int)Context::get('document_srl');
|
||||
$document_srl = (int)Context::get('document_srl') ?: null;
|
||||
if($document_srl && $this->module_info->skip_bottom_list_for_robot !== 'N' && isCrawler())
|
||||
{
|
||||
Context::set('page', $args->page = null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue