Skip to content

Commit

Permalink
Update Request.php
Browse files Browse the repository at this point in the history
Fix a notice error.
  • Loading branch information
mgralikowski authored Jul 2, 2024
1 parent 74a1d06 commit 14a1f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function orderableColumns(): array
/** @var string $direction */
$direction = $this->request->input("order.$i.dir");

$order_dir = strtolower($direction) === 'asc' ? 'asc' : 'desc';
$order_dir = $direction && strtolower($direction) === 'asc' ? 'asc' : 'desc';
if ($this->isColumnOrderable($order_col)) {
$orderable[] = ['column' => $order_col, 'direction' => $order_dir];
}
Expand Down

0 comments on commit 14a1f1a

Please sign in to comment.