Skip to content

Commit

Permalink
Merge pull request #182 from g4m-rickwalker/master
Browse files Browse the repository at this point in the history
G4M: PHP 8 compat
  • Loading branch information
tomwalder authored Apr 29, 2022
2 parents 10894b4 + 994399d commit 9339fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GDS/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function fetchPage($int_page_size, $mix_offset = null)
$str_offset = 'OFFSET @startCursor';
$arr_params['startCursor'] = $mix_offset;
}
} else if (strlen($this->str_last_cursor) > 1) {
} else if (!is_null($this->str_last_cursor) && strlen($this->str_last_cursor) > 1) {
$str_offset = 'OFFSET @startCursor';
$arr_params['startCursor'] = $this->str_last_cursor;
}
Expand Down

0 comments on commit 9339fe2

Please sign in to comment.