fixes
This commit is contained in:
parent
e8d19abf7a
commit
cccf7a3cc2
|
|
@ -72,10 +72,11 @@ class PaymentFilters extends QueryFilters
|
||||||
{
|
{
|
||||||
$sort_col = explode('|', $sort);
|
$sort_col = explode('|', $sort);
|
||||||
|
|
||||||
if(is_array($sort_col))
|
if (!is_array($sort_col) || count($sort_col) != 2) {
|
||||||
return $this->builder->orderBy($sort_col[0], $sort_col[1]);
|
return $this->builder;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return $this->builder->orderBy($sort_col[0], $sort_col[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function number(string $number = ''): Builder
|
public function number(string $number = ''): Builder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue