From 1515e3e29462f524814d52d63a6e2f19f3729e5f Mon Sep 17 00:00:00 2001 From: Bryan Crowe Date: Sat, 15 Aug 2015 19:23:48 -0400 Subject: [PATCH] Fix write return for php 5.4 --- src/Controller/Component/ApiPaginationComponent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Controller/Component/ApiPaginationComponent.php b/src/Controller/Component/ApiPaginationComponent.php index e7312d2..98e1a11 100644 --- a/src/Controller/Component/ApiPaginationComponent.php +++ b/src/Controller/Component/ApiPaginationComponent.php @@ -46,12 +46,13 @@ public function beforeRender(Event $event) } $this->paging = $controller->request->params['paging'][$controller->name]; + $config = $this->config(); - if (!empty($this->config('aliases'))) { + if (!empty($config['aliases'])) { $this->setAliases(); } - if (!empty($this->config('visible'))) { + if (!empty($config['visible'])) { $this->setVisibility(); }