Fix PHP notice in PR #3557

This commit is contained in:
Frederic Guillot 2017-11-16 13:54:44 -08:00
parent 6f55acf1a6
commit bea52c7578
2 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@ class UserListController extends BaseController
$this->response->html($this->helper->layout->app('user_list/listing', array(
'title' => t('Users').' ('.$paginator->getTotal().')',
'paginator' => $paginator,
'values' => array(),
)));
}
@ -38,7 +39,6 @@ class UserListController extends BaseController
$paginator = $this->userPagination->getListingPaginator();
if ($search !== '' && ! $paginator->isEmpty()) {
$paginator = $paginator
->setUrl('UserListController', 'search', array('search' => $search))
->setQuery($this->userQuery

View File

@ -342,7 +342,7 @@ class Paginator
}
/**
* Calculate the offset value accoring to url params and the page number
* Calculate the offset value according to url params and the page number
*
* @access public
* @return $this