Skip to content

Commit 09b29dd

Browse files
committed
Fix empty order clause
1 parent bd8cdd2 commit 09b29dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TgDatabase/Criterion/QueryImpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function getOrderByClause() {
331331
$rc .= $order->toSqlString($this, $this);
332332
$first = FALSE;
333333
}
334+
if (trim($rc) == '') $rc = NULL;
334335
}
335336
return $rc;
336337
}

0 commit comments

Comments
 (0)