Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Offset should be numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Mar 2, 2016
1 parent 2e2c12d commit 72a5e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 72a5e73

Please sign in to comment.