mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Accept null values in SearchContext->getResults()
This commit is contained in:
parent
b95abeedc6
commit
9a381d8393
@ -162,7 +162,7 @@ class SearchContext extends Object {
|
||||
* @return SS_List
|
||||
*/
|
||||
public function getResults($searchParams, $sort = false, $limit = false) {
|
||||
$searchParams = array_filter($searchParams, array($this,'clearEmptySearchFields'));
|
||||
$searchParams = array_filter((array)$searchParams, array($this,'clearEmptySearchFields'));
|
||||
|
||||
// getQuery actually returns a DataList
|
||||
return $this->getQuery($searchParams, $sort, $limit);
|
||||
|
Loading…
Reference in New Issue
Block a user