Skip to content

Commit 1515e3e

Browse files
committed
Fix write return for php 5.4
1 parent 6174cbb commit 1515e3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Controller/Component/ApiPaginationComponent.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ public function beforeRender(Event $event)
4646
}
4747

4848
$this->paging = $controller->request->params['paging'][$controller->name];
49+
$config = $this->config();
4950

50-
if (!empty($this->config('aliases'))) {
51+
if (!empty($config['aliases'])) {
5152
$this->setAliases();
5253
}
5354

54-
if (!empty($this->config('visible'))) {
55+
if (!empty($config['visible'])) {
5556
$this->setVisibility();
5657
}
5758

0 commit comments

Comments
 (0)