Skip to content

Commit

Permalink
Fix query builder limit conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ngekoding committed Apr 28, 2022
1 parent 2daefa5 commit 7a5196d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function order()
*/
protected function limit()
{
if (($start = $this->request->get('start')) && ($length = $this->request->get('length')) != -1) {
if (($start = $this->request->get('start')) !== NULL && ($length = $this->request->get('length')) != -1) {
$this->queryBuilder->{$this->config->get('limit')}($length, $start);
}
}
Expand Down

0 comments on commit 7a5196d

Please sign in to comment.