mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix error in integration search when exclusion list is empty
This commit is contained in:
parent
bd94b6915e
commit
49a1c52913
1 changed files with 7 additions and 5 deletions
|
|
@ -59,9 +59,10 @@ class integration_searchModel extends module
|
|||
$args->order_type = 'asc';
|
||||
$args->statusList = array('PUBLIC');
|
||||
if(!$args->module_srl) unset($args->module_srl);
|
||||
if(!$args->exclude_module_srl) unset($args->exclude_module_srl);
|
||||
|
||||
// Get a list of documents
|
||||
$oDocumentModel = getModel('document');
|
||||
|
||||
return $oDocumentModel->getDocumentList($args);
|
||||
}
|
||||
|
||||
|
|
@ -107,11 +108,12 @@ class integration_searchModel extends module
|
|||
$args->sort_index = 'list_order';
|
||||
$args->order_type = 'asc';
|
||||
$args->statusList = array(1);
|
||||
// Get a list of documents
|
||||
if(!$args->module_srl) unset($args->module_srl);
|
||||
if(!$args->exclude_module_srl) unset($args->exclude_module_srl);
|
||||
|
||||
// Get a list of comments
|
||||
$oCommentModel = getModel('comment');
|
||||
$output = $oCommentModel->getTotalCommentList($args);
|
||||
if(!$output->toBool()|| !$output->data) return $output;
|
||||
return $output;
|
||||
return $oCommentModel->getTotalCommentList($args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue