Skip to content

Commit

Permalink
Fix 'non-numeric value encountered' error (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
janette authored and dafeder committed Oct 18, 2018
1 parent 2d8a382 commit 79f4651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dkan/dkan_migrate_base/dkan_migrate_base.migrate.inc
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class CKANListJSON extends MigrateListJSON {
public function __construct($list_url, $http_options = array()) {
parent::__construct($list_url);
$this->httpOptions = $http_options;
$this->page = isset($http_options['page']) ? $http_options['page'] : '';
$this->offset = isset($http_options['offset']) ? $http_options['offset'] : '';
$this->page = isset($http_options['page']) ? intval($http_options['page']) : 0;
$this->offset = isset($http_options['offset']) ? intval($http_options['offset']) : 0;
$this->ids = isset($http_options['ids']) ? $http_options['ids'] : '';
}

Expand Down

0 comments on commit 79f4651

Please sign in to comment.