From 72a5e737d95aa5c02bbe3ffabd652f9c9e44c0a2 Mon Sep 17 00:00:00 2001 From: Bob Olde Hampsink Date: Wed, 2 Mar 2016 10:23:03 +0100 Subject: [PATCH] Offset should be numeric --- services/ExportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ExportService.php b/services/ExportService.php index 6f9550a..759d962 100644 --- a/services/ExportService.php +++ b/services/ExportService.php @@ -263,7 +263,7 @@ protected function getData(array $settings) } // Cut up data from source - if (array_key_exists('offset', $settings) && $settings['offset'] != '') { + if (array_key_exists('offset', $settings) && is_numeric($settings['offset'])) { $data = array_slice($data, $settings['offset'], $settings['limit']); }