#1184 Fix /api/posts returning 500 (#1188)

* Fix ListPostsController::applyFilters not receiving array if argument not present

* Whoops! Use `[]` instead of `array()`

* Update AbstractSerializeController.php

* Update ListPostsController.php
This commit is contained in:
David Sevilla Martín 2017-05-18 16:04:01 -04:00 committed by Franz Liedke
parent 1af1f472f9
commit 23b423c6ce

View File

@ -186,7 +186,7 @@ abstract class AbstractSerializeController implements ControllerInterface
*/
protected function extractFilter(ServerRequestInterface $request)
{
return $this->buildParameters($request)->getFilter();
return $this->buildParameters($request)->getFilter() ?: [];
}
/**