mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +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
1af1f472f9
commit
23b423c6ce
|
@ -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…
Reference in New Issue
Block a user