We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a1d06 commit 14a1f1aCopy full SHA for 14a1f1a
src/Utilities/Request.php
@@ -86,7 +86,7 @@ public function orderableColumns(): array
86
/** @var string $direction */
87
$direction = $this->request->input("order.$i.dir");
88
89
- $order_dir = strtolower($direction) === 'asc' ? 'asc' : 'desc';
+ $order_dir = $direction && strtolower($direction) === 'asc' ? 'asc' : 'desc';
90
if ($this->isColumnOrderable($order_col)) {
91
$orderable[] = ['column' => $order_col, 'direction' => $order_dir];
92
}
0 commit comments