mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 10:42:46 +08:00
* 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:
parent
4c71f193ef
commit
ab564958b2
@ -186,7 +186,7 @@ abstract class AbstractSerializeController implements ControllerInterface
|
||||
*/
|
||||
protected function extractFilter(ServerRequestInterface $request)
|
||||
{
|
||||
return $this->buildParameters($request)->getFilter();
|
||||
return $this->buildParameters($request)->getFilter() ?: [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user