Skip to content

Commit b0f1177

Browse files
authored
Merge pull request #3154 from mgralikowski/patch-2
fix: ErrorException when direction is null
2 parents 74a1d06 + 14a1f1a commit b0f1177

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)