Skip to content

Commit 7a5196d

Browse files
committed
Fix query builder limit conditions
1 parent 2daefa5 commit 7a5196d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTables.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected function order()
202202
*/
203203
protected function limit()
204204
{
205-
if (($start = $this->request->get('start')) && ($length = $this->request->get('length')) != -1) {
205+
if (($start = $this->request->get('start')) !== NULL && ($length = $this->request->get('length')) != -1) {
206206
$this->queryBuilder->{$this->config->get('limit')}($length, $start);
207207
}
208208
}

0 commit comments

Comments
 (0)