Skip to content

Commit 77613e2

Browse files
committed
Merge pull request #74 from alpha0010/master
Sphinx requires facet order by to provide a direction
2 parents c9dcda8 + 5cee017 commit 77613e2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Facet.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ public function compileFacet()
295295

296296
foreach ($this->order_by as $order) {
297297
$order_sub = $this->getConnection()->quoteIdentifier($order['column']).' ';
298-
299-
if ($order['direction'] !== null) {
300-
$order_sub .= ((strtolower($order['direction']) === 'desc') ? 'DESC' : 'ASC');
301-
}
298+
$order_sub .= ((strtolower($order['direction']) === 'desc') ? 'DESC' : 'ASC');
302299

303300
$order_arr[] = $order_sub;
304301
}

0 commit comments

Comments
 (0)