diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index 89ad5e1..2260738 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -211,7 +211,8 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP if ($paginator = $gridField->getConfig()->getComponentsByType('GridFieldPaginator')->First()) { $pageState = $gridField->State->GridFieldPaginator; - if($pageState->currentPage && $pageState->currentPage>1) { + + if($pageState->currentPage && is_int($pageState->currentPage) && $pageState->currentPage>1) { $pageOffset = $paginator->getItemsPerPage() * ($pageState->currentPage - 1); } }