mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
When exporting JSON with a limit and a page > 1 set, a leading comma is added
before the first item because `$offset !== 0` evaluates to true, resulting in
invalid JSON.
Replace the offset‑based condition with a `$first` flag to track whether any
item has been written yet.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| CsvResultSet.php | ||
| CsvResultSetUtils.php | ||
| DependencyNodes.php | ||
| JsonResultSet.php | ||
| JsonResultSetUtils.php | ||
| PivotTable.php | ||
| VolatileCsvResults.php | ||
| VolatileJsonResults.php | ||