1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00
This commit is contained in:
paulwer 2023-01-30 11:06:01 +01:00
parent e8d19abf7a
commit cccf7a3cc2

View File

@ -72,10 +72,11 @@ class PaymentFilters extends QueryFilters
{
$sort_col = explode('|', $sort);
if(is_array($sort_col))
return $this->builder->orderBy($sort_col[0], $sort_col[1]);
if (!is_array($sort_col) || count($sort_col) != 2) {
return $this->builder;
}
return true;
return $this->builder->orderBy($sort_col[0], $sort_col[1]);
}
public function number(string $number = ''): Builder