Skip to content

Commit

Permalink
JsonResultSetUtils: When query offset is null, Use 0 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 19, 2024
1 parent d425fe6 commit 5e1193f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Data/JsonResultSetUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function stream(Query $query): void
if ($query->hasLimit()) {
// Custom limits should still apply
$query->peekAhead(false);
$offset = $query->getOffset();
$offset = $query->getOffset() ?: 0;
} else {
$query->limit(1000);
$query->peekAhead();
Expand Down

0 comments on commit 5e1193f

Please sign in to comment.