diff --git a/src/GDS/Store.php b/src/GDS/Store.php index 2b5ae26..e2c2442 100644 --- a/src/GDS/Store.php +++ b/src/GDS/Store.php @@ -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; }