Actually make it work

This commit is contained in:
Mark Schouten 2014-09-26 13:05:04 +02:00
parent bc5a4964ec
commit ee0729e6c0
3 changed files with 9 additions and 4 deletions

View file

@ -112,7 +112,7 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm
} else {
if (isset($_GET['jtPageSize'])) {
$jTableResult['TotalRecordCount'] = count($records);
$records = array_slice($records, $_GET['jtStartIndex'], $_GET['jtPageSize']);
$records = array_slice($records, $_GET['jtStartIndex']-1, $_GET['jtPageSize']);
}
$jTableResult['Result'] = "OK";
$jTableResult['Records'] = $records;