Fix splicing the right way

This commit is contained in:
Mark Schouten 2014-06-30 15:17:08 +02:00
parent fa3681cbdb
commit 816790ce4e
2 changed files with 1 additions and 4 deletions

View file

@ -194,9 +194,6 @@ if ($action == "list" or $action== "listslaves") {
}
}
usort($return, "zonesort");
if (isset($_GET['jtStartIndex']) and isset($_GET['jtPageSize'])) {
jtable_respond(array_slice($return, $_GET['jtStartIndex'], $_GET['jtPageSize']));
}
jtable_respond($return);
} elseif ($action == "create") {
if (_valid_label($_POST['name']) === FALSE) {