Skip to content

Commit

Permalink
Fix write return for php 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Aug 15, 2015
1 parent 6174cbb commit 1515e3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controller/Component/ApiPaginationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 1515e3e

Please sign in to comment.