mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Update Search.php
This commit is contained in:
parent
247e712738
commit
53bbfb44b1
@ -153,11 +153,13 @@ abstract class Search extends Component
|
||||
|
||||
protected function setDefaultFindOptions($options)
|
||||
{
|
||||
if (!isset($options['page']) || $options['page'] == '')
|
||||
if (!isset($options['page']) || $options['page'] == '') {
|
||||
$options['page'] = 1;
|
||||
}
|
||||
|
||||
if (!isset($options['pageSize']) || $options['pageSize'] == '')
|
||||
if (!isset($options['pageSize']) || $options['pageSize'] == '') {
|
||||
$options['pageSize'] = Yii::$app->settings->get('paginationSize');
|
||||
}
|
||||
|
||||
if (!isset($options['checkPermissions'])) {
|
||||
$options['checkPermissions'] = true;
|
||||
@ -181,6 +183,7 @@ abstract class Search extends Component
|
||||
{
|
||||
$additionalAttributes = [];
|
||||
$this->trigger(self::EVENT_SEARCH_ATTRIBUTES, new SearchAttributesEvent($additionalAttributes, $object));
|
||||
|
||||
return $additionalAttributes;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user