From 7e6db39d50b11cc6fc79f9a4dae50a0f8fb20122 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 5 Jan 2007 23:39:47 +0000 Subject: [PATCH] Additional helper detection for paginate() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4257 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 39450f46a..1107beafd 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -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'; }