Skip to content

Commit 14a1f1a

Browse files
authored
Update Request.php
Fix a notice error.
1 parent 74a1d06 commit 14a1f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function orderableColumns(): array
8686
/** @var string $direction */
8787
$direction = $this->request->input("order.$i.dir");
8888

89-
$order_dir = strtolower($direction) === 'asc' ? 'asc' : 'desc';
89+
$order_dir = $direction && strtolower($direction) === 'asc' ? 'asc' : 'desc';
9090
if ($this->isColumnOrderable($order_col)) {
9191
$orderable[] = ['column' => $order_col, 'direction' => $order_dir];
9292
}

0 commit comments

Comments
 (0)