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:
nate 2007-01-05 23:39:47 +00:00
parent b5309bb017
commit 7e6db39d50

View file

@ -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';
}