File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ public function __construct() {
60
60
// version < 1.10
61
61
62
62
$ this ->input ['draw ' ] = Input::get ('sEcho ' ,'' );
63
- $ this ->input ['start ' ] = Input::get ('iDisplayStart ' , '' );
64
- $ this ->input ['length ' ] = Input::get ('iDisplayLength ' , '' );
63
+ $ this ->input ['start ' ] = Input::get ('iDisplayStart ' );
64
+ $ this ->input ['length ' ] = Input::get ('iDisplayLength ' );
65
65
$ this ->input ['search ' ] = array (
66
66
'value ' => Input::get ('sSearch ' ,'' ),
67
67
'regex ' => Input::get ('bRegex ' ,'' ),
@@ -432,7 +432,7 @@ protected function include_in_array($item,$array)
432
432
*/
433
433
protected function paging ()
434
434
{
435
- if (!is_null ($ this ->input ['start ' ]) && $ this ->input ['start ' ] != - 1 )
435
+ if (!is_null ($ this ->input ['start ' ]) && ! is_null ( $ this ->input ['length ' ]) )
436
436
{
437
437
$ this ->query ->skip ($ this ->input ['start ' ])->take ((int )$ this ->input ['length ' ]>0 ?$ this ->input ['length ' ]:10 );
438
438
}
You can’t perform that action at this time.
0 commit comments