mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Additional helper detection for paginate()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4257 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b5309bb017
commit
7e6db39d50
1 changed files with 1 additions and 1 deletions
|
@ -1019,7 +1019,7 @@ class Controller extends Object {
|
|||
);
|
||||
$this->params['paging'][$object->name] = $paging;
|
||||
|
||||
if (!in_array('Paginator', $this->helpers)) {
|
||||
if (!in_array('Paginator', $this->helpers) && !array_key_exists('Paginator', $this->helpers)) {
|
||||
$this->helpers[] = 'Paginator';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue