mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Handle nothing being passed into sort() filter
This commit is contained in:
parent
4242805e5c
commit
0c4a691592
@ -185,7 +185,7 @@ class InvoiceFilters extends QueryFilters
|
||||
* @param string sort formatted as column|asc
|
||||
* @return Builder
|
||||
*/
|
||||
public function sort(string $sort) : Builder
|
||||
public function sort(string $sort = '') : Builder
|
||||
{
|
||||
$sort_col = explode('|', $sort);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user